C# Класс GameWorldController, UnderworldExporter

Game world controller for controlling references and various global activities
Наследование: UWEBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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,

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Awake ( ) : void
Start ( ) : void
UpdateAnimation ( ) : void

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

Описание методов

FindTile() публичный статический Метод

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.
Результат GameObject

FindTileByName() публичный статический Метод

Finds a tile in the current level by name
public static FindTileByName ( string tileName ) : GameObject
tileName string Tile name.
Результат GameObject

FreezeMovement() публичный статический Метод

Freezes the movement of the specified object if it has a rigid body attached.
public static FreezeMovement ( GameObject myObj ) : void
myObj GameObject My object.
Результат void

GetTileName() публичный статический Метод

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.
Результат string

LevelMarker() публичный Метод

Returns the transform of the levels object marker. So objects will remain on that level
public LevelMarker ( ) : Transform
Результат Transform

SwitchLevel() публичный Метод

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.
Результат void

UnFreezeMovement() публичный статический Метод

Unfreeze the movement of the specified object if it has a rigid body attached.
public static UnFreezeMovement ( GameObject myObj ) : void
myObj GameObject My object.
Результат void

findDoor() публичный статический Метод

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.
Результат GameObject

getCurrentLevelModel() публичный Метод

Gets the current level model.
public getCurrentLevelModel ( ) : GameObject
Результат GameObject

Описание свойств

AtMainMenu публичное свойство

Is the game at the main menu or should it start at the mainmenu.
public bool AtMainMenu
Результат bool

EnableTextureAnimation публичное свойство

Enables texture animation effects
public bool EnableTextureAnimation
Результат bool

InventoryMarker публичное свойство

The game object that picked up items are parented to.
public GameObject InventoryMarker
Результат GameObject

LevelNo публичное свойство

What level number we are currently on.
public int LevelNo
Результат int

LevelObjects публичное свойство

Array of game objects containing the level objects
public GameObject[] LevelObjects
Результат GameObject[]

StartPos публичное свойство

public Vector3 StartPos
Результат Vector3

Tilemap публичное свойство

The tilemap class for the game
public TileMap, Tilemap
Результат TileMap,

WorldModel публичное свойство

Array of game objects containing the level meshes
public GameObject[] WorldModel
Результат GameObject[]

commobj публичное свойство

Common Object Properties
public CommonObjProps, commobj
Результат CommonObjProps,

critter публичное свойство

The critter properties from objects.dat
public Critters, critter
Результат Critters,

game публичное свойство

The game name.
public string game
Результат string

greyScale публичное свойство

The grey scale shader. Reference to allow loading of a hidden shader.
public Shader greyScale
Результат Shader

instance публичное статическое свойство

The instance of this class
public static GameWorldController, instance
Результат GameWorldController,

mus публичное свойство

The music controller for the game
public MusicController, mus
Результат MusicController,

objectMaster публичное свойство

The object master class for storing and reading object properties in an external file
public ObjectMasters, objectMaster
Результат ObjectMasters,

paletteArray публичное свойство

Array of cycled game palettes for animatione effects.
public Texture2D[],UnityEngine paletteArray
Результат UnityEngine.Texture2D[]

paletteIndex публичное свойство

The index of the palette currently in use
public int paletteIndex
Результат int

paletteIndexReverse публичное свойство

The palette index when going in reverse.
public int paletteIndexReverse
Результат int

variables публичное свойство

The Variables for the check/set variable traps
public int[] variables
Результат int[]

vortex публичное свойство

The vortex effect shader. Reference to allow loading of a hidden shader.
public Shader vortex
Результат Shader

weaponprops публичное свойство

Weapon properties.
public WeaponProps, weaponprops
Результат WeaponProps,