Пример #1
0
 public virtual void UpdateLogic(OfficeWorld officeWorld, Time timeElapsed)
 {
     foreach (AObject lObject in this.objectsInsideLayer)
     {
         lObject.UpdateLogic(officeWorld, timeElapsed);
     }
 }
Пример #2
0
        public void Dispose(OfficeWorld world)
        {
            foreach (AObject lObject in this.objectsInsideLayer)
            {
                lObject.Dispose(world);

                world.NotifyObjectDestroyed(this, lObject);
            }

            this.objectsInsideLayer.Clear();
        }
Пример #3
0
        public void AddObject(OfficeWorld world, AObject lObject)
        {
            this.objectsInsideLayer.Add(lObject);

            world.NotifyObjectCreated(this, lObject);
        }