示例#1
0
        public bool CanUnload(bool check = false)
        {
            if (checkTerrainType)
            {
                var terrainType = self.World.Map.GetTerrainInfo(self.Location).Type;

                if (!Info.UnloadTerrainTypes.Contains(terrainType))
                {
                    return(false);
                }
            }

            return(!IsEmpty(self) && (aircraft == null || aircraft.CanLand(self.Location, blockedByMobile: false)) &&
                   CurrentAdjacentCells != null && CurrentAdjacentCells.Any(c => Garrisoners.Any(p => !p.IsDead && p.Trait <IPositionable>().CanEnterCell(c, null, check))));
        }
示例#2
0
 void ITransformActorInitModifier.ModifyTransformActorInit(Actor self, TypeDictionary init)
 {
     init.Add(new RuntimeGarrisonInit(Garrisoners.ToArray()));
 }