public override void Update(double delta) { Commands.Update(delta); CurrentState = PhysicalModel.Update(delta, CurrentState); if (!IsPlayer && IsCrashed()) { } }
public void UpdateModel() { var eventAggregator = MockRepository.GenerateStub <IEventAggregator>(); var model = new PhysicalModel(eventAggregator); model.UpdateModel(new List <Endpoint> { new Endpoint() }); eventAggregator.AssertWasCalled(x => x.Publish <PhysicalModelUpdated>()); }
public Model(GenieLamp lamp) { this.lamp = lamp; metaObjects = new MetaObjectCollection <IMetaObject, MetaObject>(this); entities = new Entities(this); types = new Types(this); enumerations = new Enumerations(this); relations = new Relations(this); generators = new Generators(this); this.PhysicalModel = new PhysicalModel(this); schemas = new Schemas(this); spellHints = new SpellHints(this); }