C# Class MapGeneration

Inheritance: MonoBehaviour
Afficher le fichier Open project: marouen-lamiri/Second-Soul Class Usage Examples

Méthodes publiques

Свойство Type Description
RegularEnemy GameObject
crystalPrefab GameObject
enemyfactory EnemyFactory,
itemHolderPrefab ItemHolder,
lootFactory LootFactory,
mapArray ].int[
mapGenerationCompleted bool
mapSizeX int
mapSizeZ int
obstaclePrefab GameObject
outsidePrefab GameObject
playerStartPositionVector3 Vector3
statuePrefab GameObject
teleportingEndCauldron GameObject
teleportingStartCauldron GameObject
torchPrefab GameObject
treasureChest GameObject
wallPrefab GameObject

Méthodes publiques

Méthode Description
Awake ( ) : void
Update ( ) : void
buildMap ( int map ) : void
buildOutside ( int map, int i, int j ) : void
buildWalls ( int map, int i, int j ) : void
subscribeToSorcererInstancePublisher ( ) : void
updateMySorcerer ( Sorcerer, newSorcerer ) : void

Private Methods

Méthode Description
FindRooms ( int genMap, int sizeX, int sizeZ ) : int
createDungeonHalls ( int map, int sizeX, int sizeZ, int numberRooms ) : ].int[
createSquares ( int sizeX, int sizeZ, int squaresToGenerate ) : ].int[
enemySpawnLocation ( int map ) : ].int[
generateMap ( int sizeX, int sizeZ, int squaresToGenerate, GameObject player, GameObject player2 ) : ].int[
generateObstacles ( int map, GameObject obstacle, bool type ) : ].int[
mapEndPosition ( int map ) : ].int[
playerStartPosition ( int map, GameObject player ) : ].int[
treasureSpawner ( int map ) : ].int[

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

buildMap() public méthode

public buildMap ( int map ) : void
map int
Résultat void

buildOutside() public méthode

public buildOutside ( int map, int i, int j ) : void
map int
i int
j int
Résultat void

buildWalls() public méthode

public buildWalls ( int map, int i, int j ) : void
map int
i int
j int
Résultat void

subscribeToSorcererInstancePublisher() public méthode

public subscribeToSorcererInstancePublisher ( ) : void
Résultat void

updateMySorcerer() public méthode

public updateMySorcerer ( Sorcerer, newSorcerer ) : void
newSorcerer Sorcerer,
Résultat void

Property Details

RegularEnemy public_oe property

public GameObject RegularEnemy
Résultat GameObject

crystalPrefab public_oe property

public GameObject crystalPrefab
Résultat GameObject

enemyfactory public_oe property

public EnemyFactory, enemyfactory
Résultat EnemyFactory,

itemHolderPrefab public_oe property

public ItemHolder, itemHolderPrefab
Résultat ItemHolder,

lootFactory public_oe property

public LootFactory, lootFactory
Résultat LootFactory,

mapArray public_oe static_oe property

public static int[,] mapArray
Résultat ].int[

mapGenerationCompleted public_oe static_oe property

public static bool mapGenerationCompleted
Résultat bool

mapSizeX public_oe static_oe property

public static int mapSizeX
Résultat int

mapSizeZ public_oe static_oe property

public static int mapSizeZ
Résultat int

obstaclePrefab public_oe property

public GameObject obstaclePrefab
Résultat GameObject

outsidePrefab public_oe property

public GameObject outsidePrefab
Résultat GameObject

playerStartPositionVector3 public_oe static_oe property

public static Vector3 playerStartPositionVector3
Résultat Vector3

statuePrefab public_oe property

public GameObject statuePrefab
Résultat GameObject

teleportingEndCauldron public_oe property

public GameObject teleportingEndCauldron
Résultat GameObject

teleportingStartCauldron public_oe property

public GameObject teleportingStartCauldron
Résultat GameObject

torchPrefab public_oe property

public GameObject torchPrefab
Résultat GameObject

treasureChest public_oe property

public GameObject treasureChest
Résultat GameObject

wallPrefab public_oe property

public GameObject wallPrefab
Résultat GameObject