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); }
void Apply(SpatialEntity entity) { recordedWorld.Head = recordedWorld.Head.Add(entity); }
public WorldModel Add(SpatialEntity entity) { return new WorldModel(Entities.Add(entity.Name, entity)); }
static object ProcessMessage(SpatialEntity entity) { return null; }