C# Класс Pokemon3D.GameModes.GameMode

Contains methods and members that control a GameMode, a collection of maps, scripts and assets.
Наследование: Pokemon3D.Common.GameContextObject, IDataModelContainer, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Frees all resources consumed by this GameMode.

EnsureExecutedInMainThread ( System.Action action ) : void
GetAbilityModel ( string id ) : AbilityModel
GetItemModel ( string id ) : ItemModel
GetMapFilePath ( string mapId ) : string

Returns the path to a map file, relative to the GameMode's root folder.

GetMapFragmentFilePath ( string mapFragmentId ) : string

Returns the path to a map fragment file, relative to the GameMode's root folder.

GetModel ( string filePath ) : ModelMesh[]
GetMoveModel ( string id ) : MoveModel
GetNatureModel ( string natureId ) : NatureModel
GetNatures ( ) : NatureModel[]
GetPokedexModel ( string id ) : PokedexModel
GetPokemonFilePath ( string pokemonId ) : string

Returns the absolute path to a pokemon data file.

GetPokemonTexturesContentPath ( ) : string
GetPrimitiveMesh ( string primitiveName ) : Mesh
GetScriptFilePath ( string scriptFileName ) : string

Returns the path to a script file, relative to the GameMode's root folder.

GetTexture ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetTextureFromRawFolder ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetTypeModel ( string typeId ) : TypeModel
LoadMap ( string dataPath, bool forceReloadCached = false ) : MapModel
Preload ( ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
GameMode ( GameModeInfo gameModeInfo, GameContext gameContext, FileProvider fileLoader ) : Pokemon3D.DataModel

Creates an instance of the GameMode class and loads the data model.

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

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

Frees all resources consumed by this GameMode.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public EnsureExecutedInMainThread ( System.Action action ) : void
action System.Action
Результат void

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

public GetAbilityModel ( string id ) : AbilityModel
id string
Результат AbilityModel

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

public GetItemModel ( string id ) : ItemModel
id string
Результат ItemModel

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

Returns the path to a map file, relative to the GameMode's root folder.
public GetMapFilePath ( string mapId ) : string
mapId string
Результат string

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

Returns the path to a map fragment file, relative to the GameMode's root folder.
public GetMapFragmentFilePath ( string mapFragmentId ) : string
mapFragmentId string
Результат string

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

public GetModel ( string filePath ) : ModelMesh[]
filePath string
Результат ModelMesh[]

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

public GetMoveModel ( string id ) : MoveModel
id string
Результат MoveModel

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

public GetNatureModel ( string natureId ) : NatureModel
natureId string
Результат NatureModel

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

public GetNatures ( ) : NatureModel[]
Результат NatureModel[]

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

public GetPokedexModel ( string id ) : PokedexModel
id string
Результат PokedexModel

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

Returns the absolute path to a pokemon data file.
public GetPokemonFilePath ( string pokemonId ) : string
pokemonId string
Результат string

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

public GetPokemonTexturesContentPath ( ) : string
Результат string

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

public GetPrimitiveMesh ( string primitiveName ) : Mesh
primitiveName string
Результат Pokemon3D.Rendering.Data.Mesh

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

Returns the path to a script file, relative to the GameMode's root folder.
public GetScriptFilePath ( string scriptFileName ) : string
scriptFileName string
Результат string

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

public GetTexture ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
filePath string
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public GetTextureFromRawFolder ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
filePath string
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public GetTypeModel ( string typeId ) : TypeModel
typeId string
Результат TypeModel

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

public LoadMap ( string dataPath, bool forceReloadCached = false ) : MapModel
dataPath string
forceReloadCached bool
Результат MapModel

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

public Preload ( ) : void
Результат void