Beispiel #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>();
     }
 }
Beispiel #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>();
     }
 }