C# Class GameWorldController, UnderworldExporter

Game world controller for controlling references and various global activities
Inheritance: UWEBase
Afficher le fichier Open project: hankmorgan/UnderworldExporter Class Usage Examples

Méthodes publiques

Свойство Type Description
AtMainMenu bool
EnableTextureAnimation bool
InventoryMarker GameObject
LevelNo int
LevelObjects GameObject[]
StartPos Vector3
Tilemap TileMap,
WorldModel GameObject[]
commobj CommonObjProps,
critter Critters,
game string
greyScale Shader
instance GameWorldController,
mus MusicController,
objectMaster ObjectMasters,
paletteArray UnityEngine.Texture2D[]
paletteIndex int
paletteIndexReverse int
variables int[]
vortex Shader
weaponprops WeaponProps,

Méthodes publiques

Méthode Description
FindTile ( int x, int y, int surface ) : GameObject

Finds the tile or wall at the specified coordinates.

FindTileByName ( string tileName ) : GameObject

Finds a tile in the current level by name

FreezeMovement ( GameObject myObj ) : void

Freezes the movement of the specified object if it has a rigid body attached.

GetTileName ( int x, int y, int surface ) : string

Gets the gameobject name for the specified tile x,y and surface. Eg Wall_02_03, Tile_22_23

LevelMarker ( ) : Transform

Returns the transform of the levels object marker. So objects will remain on that level

SwitchLevel ( int newLevelNo ) : void

Switches the level to another one. Disables the map and level objects of the old one.

UnFreezeMovement ( GameObject myObj ) : void

Unfreeze the movement of the specified object if it has a rigid body attached.

findDoor ( int x, int y ) : GameObject

inds a door in the tile pointed to by the two coordinates.

getCurrentLevelModel ( ) : GameObject

Gets the current level model.

Private Methods

Méthode Description
Awake ( ) : void
Start ( ) : void
UpdateAnimation ( ) : void

Updates the global shader parameter for the colorpalette shaders at set intervals. To enable texture animation

Method Details

FindTile() public static méthode

Finds the tile or wall at the specified coordinates.
public static FindTile ( int x, int y, int surface ) : GameObject
x int The x coordinate.
y int The y coordinate.
surface int Surface.
Résultat GameObject

FindTileByName() public static méthode

Finds a tile in the current level by name
public static FindTileByName ( string tileName ) : GameObject
tileName string Tile name.
Résultat GameObject

FreezeMovement() public static méthode

Freezes the movement of the specified object if it has a rigid body attached.
public static FreezeMovement ( GameObject myObj ) : void
myObj GameObject My object.
Résultat void

GetTileName() public static méthode

Gets the gameobject name for the specified tile x,y and surface. Eg Wall_02_03, Tile_22_23
public static GetTileName ( int x, int y, int surface ) : string
x int The x coordinate.
y int The y coordinate.
surface int Surface.
Résultat string

LevelMarker() public méthode

Returns the transform of the levels object marker. So objects will remain on that level
public LevelMarker ( ) : Transform
Résultat Transform

SwitchLevel() public méthode

Switches the level to another one. Disables the map and level objects of the old one.
public SwitchLevel ( int newLevelNo ) : void
newLevelNo int New level no.
Résultat void

UnFreezeMovement() public static méthode

Unfreeze the movement of the specified object if it has a rigid body attached.
public static UnFreezeMovement ( GameObject myObj ) : void
myObj GameObject My object.
Résultat void

findDoor() public static méthode

inds a door in the tile pointed to by the two coordinates.
public static findDoor ( int x, int y ) : GameObject
x int The x coordinate.
y int The y coordinate.
Résultat GameObject

getCurrentLevelModel() public méthode

Gets the current level model.
public getCurrentLevelModel ( ) : GameObject
Résultat GameObject

Property Details

AtMainMenu public_oe property

Is the game at the main menu or should it start at the mainmenu.
public bool AtMainMenu
Résultat bool

EnableTextureAnimation public_oe property

Enables texture animation effects
public bool EnableTextureAnimation
Résultat bool

InventoryMarker public_oe property

The game object that picked up items are parented to.
public GameObject InventoryMarker
Résultat GameObject

LevelNo public_oe property

What level number we are currently on.
public int LevelNo
Résultat int

LevelObjects public_oe property

Array of game objects containing the level objects
public GameObject[] LevelObjects
Résultat GameObject[]

StartPos public_oe property

public Vector3 StartPos
Résultat Vector3

Tilemap public_oe property

The tilemap class for the game
public TileMap, Tilemap
Résultat TileMap,

WorldModel public_oe property

Array of game objects containing the level meshes
public GameObject[] WorldModel
Résultat GameObject[]

commobj public_oe property

Common Object Properties
public CommonObjProps, commobj
Résultat CommonObjProps,

critter public_oe property

The critter properties from objects.dat
public Critters, critter
Résultat Critters,

game public_oe property

The game name.
public string game
Résultat string

greyScale public_oe property

The grey scale shader. Reference to allow loading of a hidden shader.
public Shader greyScale
Résultat Shader

instance public_oe static_oe property

The instance of this class
public static GameWorldController, instance
Résultat GameWorldController,

mus public_oe property

The music controller for the game
public MusicController, mus
Résultat MusicController,

objectMaster public_oe property

The object master class for storing and reading object properties in an external file
public ObjectMasters, objectMaster
Résultat ObjectMasters,

paletteArray public_oe property

Array of cycled game palettes for animatione effects.
public Texture2D[],UnityEngine paletteArray
Résultat UnityEngine.Texture2D[]

paletteIndex public_oe property

The index of the palette currently in use
public int paletteIndex
Résultat int

paletteIndexReverse public_oe property

The palette index when going in reverse.
public int paletteIndexReverse
Résultat int

variables public_oe property

The Variables for the check/set variable traps
public int[] variables
Résultat int[]

vortex public_oe property

The vortex effect shader. Reference to allow loading of a hidden shader.
public Shader vortex
Résultat Shader

weaponprops public_oe property

Weapon properties.
public WeaponProps, weaponprops
Résultat WeaponProps,