C# Class OutpostGenerator.OG_Common

OG_Common class.
Afficher le fichier Open project: Rikiki123456789/Rimworld Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetRandomZoneTypeByWeight ( List list ) : ZoneType

Method Details

GenerateEmptyRoomAt() public static méthode

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
Résultat void

GenerateHorizontalAndVerticalPavedAlleys() public static méthode

public static GenerateHorizontalAndVerticalPavedAlleys ( IntVec3 origin ) : void
origin IntVec3
Résultat void

GenerateSas() public static méthode

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
Résultat void

GetRandomZoneTypeBigRoom() public static méthode

public static GetRandomZoneTypeBigRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Résultat ZoneType

GetRandomZoneTypeExteriorZone() public static méthode

public static GetRandomZoneTypeExteriorZone ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Résultat ZoneType

GetRandomZoneTypeMediumRoom() public static méthode

public static GetRandomZoneTypeMediumRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Résultat ZoneType

GetRandomZoneTypeSmallRoom() public static méthode

public static GetRandomZoneTypeSmallRoom ( OG_OutpostData outpostData ) : ZoneType
outpostData OG_OutpostData
Résultat ZoneType

SpawnCoolerAt() public static méthode

public static SpawnCoolerAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : Building_Cooler
position IntVec3
rotation Rot4
outpostData OG_OutpostData
Résultat Building_Cooler

SpawnDoorAt() public static méthode

public static SpawnDoorAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Résultat void

SpawnFireproofPowerConduitAt() public static méthode

public static SpawnFireproofPowerConduitAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Résultat void

SpawnRectTriggerUnfogArea() public static méthode

public static SpawnRectTriggerUnfogArea ( CellRect rect, TriggerIntrusion &triggerIntrusion ) : void
rect CellRect
triggerIntrusion TriggerIntrusion
Résultat void

SpawnResourceAt() public static méthode

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

SpawnVentAt() public static méthode

public static SpawnVentAt ( IntVec3 position, Rot4 rotation, OG_OutpostData &outpostData ) : void
position IntVec3
rotation Rot4
outpostData OG_OutpostData
Résultat void

TrySpawnHeaterAt() public static méthode

public static TrySpawnHeaterAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Résultat void

TrySpawnLampAt() public static méthode

public static TrySpawnLampAt ( IntVec3 position, Color color, OG_OutpostData &outpostData ) : void
position IntVec3
color Color
outpostData OG_OutpostData
Résultat void

TrySpawnLaserFencePylonAt() public static méthode

public static TrySpawnLaserFencePylonAt ( IntVec3 position, OG_OutpostData &outpostData ) : LaserFence.Building_LaserFencePylon
position IntVec3
outpostData OG_OutpostData
Résultat LaserFence.Building_LaserFencePylon

TrySpawnResourceStock() public static méthode

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
Résultat void

TrySpawnThingAt() public static méthode

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
Résultat Thing

TrySpawnWallAt() public static méthode

public static TrySpawnWallAt ( IntVec3 position, OG_OutpostData &outpostData ) : void
position IntVec3
outpostData OG_OutpostData
Résultat void

TrySpawnWeaponOnRack() public static méthode

public static TrySpawnWeaponOnRack ( Thing rack ) : void
rack Thing
Résultat void