示例#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);
        }