C# 클래스 GameWorldController, UnderworldExporter

Game world controller for controlling references and various global activities
상속: UWEBase
파일 보기 프로젝트 열기: hankmorgan/UnderworldExporter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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,