public Carryall(Actor self,CarryallInfo info) { Info = info; Carryable = null; State = CarryallState.Idle; aircraftInfo = self.Info.TraitInfoOrDefault<AircraftInfo>(); body = self.Trait<BodyOrientation>(); move = self.Trait<IMove>(); facing = self.Trait<IFacing>(); }
public Aircraft(ActorInitializer init, AircraftInfo info) { Info = info; self = init.Self; if (init.Contains <LocationInit>()) { SetPosition(self, init.Get <LocationInit, CPos>()); } if (init.Contains <CenterPositionInit>()) { SetPosition(self, init.Get <CenterPositionInit, WPos>()); } Facing = init.Contains <FacingInit>() ? init.Get <FacingInit, int>() : Info.InitialFacing; }
public ReturnOnIdle(Actor self, ReturnOnIdleInfo info) { aircraftInfo = self.Info.TraitInfo <AircraftInfo>(); }
public AttackPlane(Actor self, AttackPlaneInfo info) : base(self, info) { AttackPlaneInfo = info; aircraftInfo = self.Info.TraitInfo <AircraftInfo>(); }