public override void DrawGhost(ThingDef def, IntVec3 center, Rot4 rot)
        {
            Map visibleMap = Find.VisibleMap;

            if (def.building != null && def.building.hasFuelingPort && FuelingPortUtility.GetFuelingPortCell(center, rot).Standable(visibleMap))
            {
                PlaceWorker_FuelingPort.DrawFuelingPortCell(center, rot);
            }
        }
Ejemplo n.º 2
0
        public override void DrawGhost(ThingDef def, IntVec3 center, Rot4 rot, Color ghostCol)
        {
            Map currentMap = Find.CurrentMap;

            if (def.building != null && def.building.hasFuelingPort)
            {
                if (FuelingPortUtility.GetFuelingPortCell(center, rot).Standable(currentMap))
                {
                    PlaceWorker_FuelingPort.DrawFuelingPortCell(center, rot);
                }
            }
        }
        public override void DrawGhost(ThingDef def, IntVec3 center, Rot4 rot, Color ghostCol)
        {
            Map             currentMap           = Find.CurrentMap;
            List <Building> allBuildingsColonist = currentMap.listerBuildings.allBuildingsColonist;

            for (int i = 0; i < allBuildingsColonist.Count; i++)
            {
                Building building = allBuildingsColonist[i];
                if (building.def.building.hasFuelingPort && !Find.Selector.IsSelected(building) && FuelingPortUtility.GetFuelingPortCell(building).Standable(currentMap))
                {
                    PlaceWorker_FuelingPort.DrawFuelingPortCell(building.Position, building.Rotation);
                }
            }
        }