You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After serialization/deserialization indexed components don't work
[Fact]publicvoidAddTwoEntitiesWithDifferentIndexesThenSaveIt_ShouldReturnSingleIndexedValue(){varid1=Guid.NewGuid().ToString();varid2=Guid.NewGuid().ToString();varstore=newEntityStore();varentityA=store.CreateEntity();entityA.AddComponent(newIndex(){value=id1});varentityB=store.CreateEntity();entityB.AddComponent(newIndex(){value=id2});varnewStoreEntity1=store.GetEntitiesWithComponentValue<Index,string>(id1).ToArray();newStoreEntity1.Length.Should().Be(1);// THIS OKusingvarstream=newMemoryStream();varserializer=newEntitySerializer();serializer.WriteStore(store,stream);varreadStore=newEntityStore();serializer.ReadIntoStore(readStore,stream);readStore.Count.Should().Be(2);varreadEntity1=readStore.GetEntitiesWithComponentValue<Index,string>(id1).ToArray();readEntity1.Length.Should().Be(1);// THIS FAILED}privatestructIndex():IIndexedComponent<string>{publicstringvalue;publicstringGetIndexedValue()=>value;}
The text was updated successfully, but these errors were encountered:
After serialization/deserialization indexed components don't work
The text was updated successfully, but these errors were encountered: