Ejemplo n.º 1
0
 public GrantConditionOnDeploy(ActorInitializer init, GrantConditionOnDeployInfo info)
 {
     self             = init.Self;
     Info             = info;
     checkTerrainType = info.AllowedTerrainTypes.Count > 0;
     canTurn          = self.Info.HasTraitInfo <IFacingInfo>();
     if (init.Contains <DeployStateInit>())
     {
         deployState = init.Get <DeployStateInit, DeployState>();
     }
 }
Ejemplo n.º 2
0
 public GrantConditionOnDeploy(ActorInitializer init, GrantConditionOnDeployInfo info)
 {
     self             = init.Self;
     this.info        = info;
     checkTerrainType = info.AllowedTerrainTypes.Count > 0;
     canTurn          = self.Info.HasTraitInfo <IFacingInfo>();
     body             = Exts.Lazy(self.TraitOrDefault <WithSpriteBody>);
     if (init.Contains <DeployStateInit>())
     {
         deployState = init.Get <DeployStateInit, DeployState>();
     }
 }