Esempio n. 1
0
 public void TestAddEntity()
 {
     var history = new History();
     var eventx = new SpatialEntity("foo", "bar", new Vector3D(), Quaternion.Identity);
     history.ApplyEvent(eventx);
     history.Head.Entities["foo"].Should().BeSameAs(eventx);
 }
Esempio n. 2
0
 void Apply(SpatialEntity entity)
 {
     recordedWorld.Head = recordedWorld.Head.Add(entity);
 }
Esempio n. 3
0
 public WorldModel Add(SpatialEntity entity)
 {
     return new WorldModel(Entities.Add(entity.Name, entity));
 }
 static object ProcessMessage(SpatialEntity entity)
 {
     return null;
 }