C# Class OutpostGenerator.OG_Common

OG_Common class.
Mostrar archivo Open project: Rikiki123456789/Rimworld Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetRandomZoneTypeByWeight ( List list ) : ZoneType

Method Details

GenerateEmptyRoomAt() public static method

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
return void

GenerateHorizontalAndVerticalPavedAlleys() public static method

public static GenerateHorizontalAndVerticalPavedAlleys ( IntVec3 origin ) : void
origin IntVec3
return void

GenerateSas() public static method

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
return void

GetRandomZoneTypeBigRoom() public static method

public static GetRandomZoneTypeBigRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
return ZoneType

GetRandomZoneTypeExteriorZone() public static method

public static GetRandomZoneTypeExteriorZone ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
return ZoneType

GetRandomZoneTypeMediumRoom() public static method

public static GetRandomZoneTypeMediumRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
return ZoneType

GetRandomZoneTypeSmallRoom() public static method

public static GetRandomZoneTypeSmallRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
return ZoneType

SpawnCoolerAt() public static method

public static SpawnCoolerAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : Building_Cooler
position IntVec3
rotation Rot4
outpostData OG_OutpostData
return Building_Cooler

SpawnDoorAt() public static method

public static SpawnDoorAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
return void

SpawnFireproofPowerConduitAt() public static method

public static SpawnFireproofPowerConduitAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
return void

SpawnRectTriggerUnfogArea() public static method

public static SpawnRectTriggerUnfogArea ( CellRect rect, TriggerIntrusion &triggerIntrusion ) : void
rect CellRect
triggerIntrusion TriggerIntrusion
return void

SpawnResourceAt() public static method

public static SpawnResourceAt ( ThingDef resourceDef, int quantity, IntVec3 position, bool forceSpawn = false ) : void
resourceDef ThingDef
quantity int
position IntVec3
forceSpawn bool
return void

SpawnVentAt() public static method

public static SpawnVentAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : void
position IntVec3
rotation Rot4
outpostData OG_OutpostData
return void

TrySpawnHeaterAt() public static method

public static TrySpawnHeaterAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
return void

TrySpawnLampAt() public static method

public static TrySpawnLampAt ( IntVec3 position, Color color, OG_OutpostData &outpostData ) : void
position IntVec3
color Color
outpostData OG_OutpostData
return void

TrySpawnLaserFencePylonAt() public static method

public static TrySpawnLaserFencePylonAt ( IntVec3 position, OG_OutpostData &outpostData ) : LaserFence.Building_LaserFencePylon
position IntVec3
outpostData OG_OutpostData
return LaserFence.Building_LaserFencePylon

TrySpawnResourceStock() public static method

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
return void

TrySpawnThingAt() public static method

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
return Thing

TrySpawnWallAt() public static method

public static TrySpawnWallAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
return void

TrySpawnWeaponOnRack() public static method

public static TrySpawnWeaponOnRack ( Thing rack ) : void
rack Thing
return void