Beispiel #1
0
 public Crate(ActorInitializer init, CrateInfo info)
 {
     this.self = init.self;
     if (init.Contains <LocationInit>())
     {
         this.Location = init.Get <LocationInit, CPos>();
         PxPosition    = Util.CenterOfCell(Location);
     }
     this.Info = info;
 }
Beispiel #2
0
        public Crate(ActorInitializer init, CrateInfo info)
        {
            this.self = init.self;
            this.info = info;

            if (init.Contains <LocationInit>())
            {
                SetPosition(self, init.Get <LocationInit, CPos>());
            }
        }