C# Класс OutpostGenerator.OG_Common

OG_Common class.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GenerateEmptyRoomAt ( IntVec3 rotatedOrigin, int width, int height, Rot4 rotation, TerrainDef defaultFloorDef, TerrainDef interiorFloorDef, OG_OutpostData &outpostData ) : void
GenerateHorizontalAndVerticalPavedAlleys ( IntVec3 origin ) : void
GenerateSas ( IntVec3 origin, Rot4 rotation, int width, int height, OG_OutpostData &outpostData ) : void
GetRandomZoneTypeBigRoom ( OG_OutpostData outpostData ) : ZoneType
GetRandomZoneTypeExteriorZone ( OG_OutpostData outpostData ) : ZoneType
GetRandomZoneTypeMediumRoom ( OG_OutpostData outpostData ) : ZoneType
GetRandomZoneTypeSmallRoom ( OG_OutpostData outpostData ) : ZoneType
SpawnCoolerAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : Building_Cooler
SpawnDoorAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
SpawnFireproofPowerConduitAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
SpawnRectTriggerUnfogArea ( CellRect rect, TriggerIntrusion &triggerIntrusion ) : void
SpawnResourceAt ( ThingDef resourceDef, int quantity, IntVec3 position, bool forceSpawn = false ) : void
SpawnVentAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : void
TrySpawnHeaterAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
TrySpawnLampAt ( IntVec3 position, Color color, OG_OutpostData &outpostData ) : void
TrySpawnLaserFencePylonAt ( IntVec3 position, OG_OutpostData &outpostData ) : LaserFence.Building_LaserFencePylon
TrySpawnResourceStock ( IntVec3 rotatedOrigin, Rot4 rotation, ThingDef resourceDef, int stockWidth, int stockHeight, float spawnStockChance, int minQuantity, int maxQuantity ) : void
TrySpawnThingAt ( ThingDef thingDef, ThingDef stuffDef, IntVec3 position, bool rotated, Rot4 rotation, OG_OutpostData &outpostData, bool destroyThings = false, bool replaceStructure = false ) : Thing
TrySpawnWallAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
TrySpawnWeaponOnRack ( Thing rack ) : void

Приватные методы

Метод Описание
GetRandomZoneTypeByWeight ( List list ) : ZoneType

Описание методов

GenerateEmptyRoomAt() публичный статический Метод

public static GenerateEmptyRoomAt ( IntVec3 rotatedOrigin, int width, int height, Rot4 rotation, TerrainDef defaultFloorDef, TerrainDef interiorFloorDef, OG_OutpostData &outpostData ) : void
rotatedOrigin IntVec3
width int
height int
rotation Rot4
defaultFloorDef TerrainDef
interiorFloorDef TerrainDef
outpostData OG_OutpostData
Результат void

GenerateHorizontalAndVerticalPavedAlleys() публичный статический Метод

public static GenerateHorizontalAndVerticalPavedAlleys ( IntVec3 origin ) : void
origin IntVec3
Результат void

GenerateSas() публичный статический Метод

public static GenerateSas ( IntVec3 origin, Rot4 rotation, int width, int height, OG_OutpostData &outpostData ) : void
origin IntVec3
rotation Rot4
width int
height int
outpostData OG_OutpostData
Результат void

GetRandomZoneTypeBigRoom() публичный статический Метод

public static GetRandomZoneTypeBigRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Результат ZoneType

GetRandomZoneTypeExteriorZone() публичный статический Метод

public static GetRandomZoneTypeExteriorZone ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Результат ZoneType

GetRandomZoneTypeMediumRoom() публичный статический Метод

public static GetRandomZoneTypeMediumRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Результат ZoneType

GetRandomZoneTypeSmallRoom() публичный статический Метод

public static GetRandomZoneTypeSmallRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Результат ZoneType

SpawnCoolerAt() публичный статический Метод

public static SpawnCoolerAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : Building_Cooler
position IntVec3
rotation Rot4
outpostData OG_OutpostData
Результат Building_Cooler

SpawnDoorAt() публичный статический Метод

public static SpawnDoorAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Результат void

SpawnFireproofPowerConduitAt() публичный статический Метод

public static SpawnFireproofPowerConduitAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Результат void

SpawnRectTriggerUnfogArea() публичный статический Метод

public static SpawnRectTriggerUnfogArea ( CellRect rect, TriggerIntrusion &triggerIntrusion ) : void
rect CellRect
triggerIntrusion TriggerIntrusion
Результат void

SpawnResourceAt() публичный статический Метод

public static SpawnResourceAt ( ThingDef resourceDef, int quantity, IntVec3 position, bool forceSpawn = false ) : void
resourceDef ThingDef
quantity int
position IntVec3
forceSpawn bool
Результат void

SpawnVentAt() публичный статический Метод

public static SpawnVentAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : void
position IntVec3
rotation Rot4
outpostData OG_OutpostData
Результат void

TrySpawnHeaterAt() публичный статический Метод

public static TrySpawnHeaterAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Результат void

TrySpawnLampAt() публичный статический Метод

public static TrySpawnLampAt ( IntVec3 position, Color color, OG_OutpostData &outpostData ) : void
position IntVec3
color Color
outpostData OG_OutpostData
Результат void

TrySpawnLaserFencePylonAt() публичный статический Метод

public static TrySpawnLaserFencePylonAt ( IntVec3 position, OG_OutpostData &outpostData ) : LaserFence.Building_LaserFencePylon
position IntVec3
outpostData OG_OutpostData
Результат LaserFence.Building_LaserFencePylon

TrySpawnResourceStock() публичный статический Метод

public static TrySpawnResourceStock ( IntVec3 rotatedOrigin, Rot4 rotation, ThingDef resourceDef, int stockWidth, int stockHeight, float spawnStockChance, int minQuantity, int maxQuantity ) : void
rotatedOrigin IntVec3
rotation Rot4
resourceDef ThingDef
stockWidth int
stockHeight int
spawnStockChance float
minQuantity int
maxQuantity int
Результат void

TrySpawnThingAt() публичный статический Метод

public static TrySpawnThingAt ( ThingDef thingDef, ThingDef stuffDef, IntVec3 position, bool rotated, Rot4 rotation, OG_OutpostData &outpostData, bool destroyThings = false, bool replaceStructure = false ) : Thing
thingDef ThingDef
stuffDef ThingDef
position IntVec3
rotated bool
rotation Rot4
outpostData OG_OutpostData
destroyThings bool
replaceStructure bool
Результат Thing

TrySpawnWallAt() публичный статический Метод

public static TrySpawnWallAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Результат void

TrySpawnWeaponOnRack() публичный статический Метод

public static TrySpawnWeaponOnRack ( Thing rack ) : void
rack Thing
Результат void