Exemplo n.º 1
0
 public HarvesterTraitWrapper(Actor actor)
 {
     Actor        = actor;
     Harvester    = actor.Trait <Harvester>();
     Parachutable = actor.TraitOrDefault <Parachutable>();
     Mobile       = actor.Trait <Mobile>();
 }
Exemplo n.º 2
0
 public HarvesterTraitWrapper(Actor actor)
 {
     Actor         = actor;
     Harvester     = actor.Trait <Harvester>();
     Parachutable  = actor.TraitOrDefault <Parachutable>();
     LocomotorInfo = actor.Info.TraitInfo <MobileInfo>().LocomotorInfo;
 }
Exemplo n.º 3
0
            public HarvesterTraitWrapper(Actor actor)
            {
                Actor        = actor;
                Harvester    = actor.Trait <Harvester>();
                Parachutable = actor.TraitOrDefault <Parachutable>();
                var mobile = actor.Trait <Mobile>();

                Locomotor = mobile.Locomotor;
            }