C# Class level_generator, 1gam-dungeon

Inheritance: MonoBehaviour
Mostra file Open project: OneGameAMonth/1gam-dungeon

Public Properties

Property Type Description
door_prefab GameObject
key_prefab GameObject
level_root GameObject
level_size int
player_prefab GameObject
random_spawns GameObject[]
teleporter_prefab GameObject
tile_types TileTypeCollection[]

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
_connected_step ( int i, int end_index ) : void
_create_way ( Room, r1, Room, r2 ) : void

Private Methods

Method Description
_connected ( int start_index, int end_index ) : bool
_select_tile_prefab ( GameObject prefab_type_array, float p ) : GameObject
index ( int x, int y ) : int
index ( int x, int y, int h ) : int

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

_connected_step() public method

public _connected_step ( int i, int end_index ) : void
i int
end_index int
return void

_create_way() public method

public _create_way ( Room, r1, Room, r2 ) : void
r1 Room,
r2 Room,
return void

Property Details

door_prefab public_oe property

public GameObject door_prefab
return GameObject

key_prefab public_oe property

public GameObject key_prefab
return GameObject

level_root public_oe property

public GameObject level_root
return GameObject

level_size public_oe property

public int level_size
return int

player_prefab public_oe property

public GameObject player_prefab
return GameObject

random_spawns public_oe property

public GameObject[] random_spawns
return GameObject[]

teleporter_prefab public_oe property

public GameObject teleporter_prefab
return GameObject

tile_types public_oe property

public TileTypeCollection[] tile_types
return TileTypeCollection[]