public HarvesterTraitWrapper(Actor actor) { Actor = actor; Harvester = actor.Trait <Harvester>(); Parachutable = actor.TraitOrDefault <Parachutable>(); Mobile = actor.Trait <Mobile>(); }
public HarvesterTraitWrapper(Actor actor) { Actor = actor; Harvester = actor.Trait <Harvester>(); Parachutable = actor.TraitOrDefault <Parachutable>(); LocomotorInfo = actor.Info.TraitInfo <MobileInfo>().LocomotorInfo; }
public HarvesterTraitWrapper(Actor actor) { Actor = actor; Harvester = actor.Trait <Harvester>(); Parachutable = actor.TraitOrDefault <Parachutable>(); var mobile = actor.Trait <Mobile>(); Locomotor = mobile.Locomotor; }