C# Class Pokemon3D.GameModes.GameMode

Contains methods and members that control a GameMode, a collection of maps, scripts and assets.
Inheritance: Pokemon3D.Common.GameContextObject, IDataModelContainer, IDisposable
Afficher le fichier Open project: nilllzz/Pokemon3D Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GameMode ( GameModeInfo gameModeInfo, GameContext gameContext, FileProvider fileLoader ) : Pokemon3D.DataModel

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

Method Details

Dispose() public méthode

Frees all resources consumed by this GameMode.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EnsureExecutedInMainThread() public méthode

public EnsureExecutedInMainThread ( System.Action action ) : void
action System.Action
Résultat void

GetAbilityModel() public méthode

public GetAbilityModel ( string id ) : AbilityModel
id string
Résultat AbilityModel

GetItemModel() public méthode

public GetItemModel ( string id ) : ItemModel
id string
Résultat ItemModel

GetMapFilePath() public méthode

Returns the path to a map file, relative to the GameMode's root folder.
public GetMapFilePath ( string mapId ) : string
mapId string
Résultat string

GetMapFragmentFilePath() public méthode

Returns the path to a map fragment file, relative to the GameMode's root folder.
public GetMapFragmentFilePath ( string mapFragmentId ) : string
mapFragmentId string
Résultat string

GetModel() public méthode

public GetModel ( string filePath ) : ModelMesh[]
filePath string
Résultat ModelMesh[]

GetMoveModel() public méthode

public GetMoveModel ( string id ) : MoveModel
id string
Résultat MoveModel

GetNatureModel() public méthode

public GetNatureModel ( string natureId ) : NatureModel
natureId string
Résultat NatureModel

GetNatures() public méthode

public GetNatures ( ) : NatureModel[]
Résultat NatureModel[]

GetPokedexModel() public méthode

public GetPokedexModel ( string id ) : PokedexModel
id string
Résultat PokedexModel

GetPokemonFilePath() public méthode

Returns the absolute path to a pokemon data file.
public GetPokemonFilePath ( string pokemonId ) : string
pokemonId string
Résultat string

GetPokemonTexturesContentPath() public méthode

public GetPokemonTexturesContentPath ( ) : string
Résultat string

GetPrimitiveMesh() public méthode

public GetPrimitiveMesh ( string primitiveName ) : Mesh
primitiveName string
Résultat Pokemon3D.Rendering.Data.Mesh

GetScriptFilePath() public méthode

Returns the path to a script file, relative to the GameMode's root folder.
public GetScriptFilePath ( string scriptFileName ) : string
scriptFileName string
Résultat string

GetTexture() public méthode

public GetTexture ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
filePath string
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

GetTextureFromRawFolder() public méthode

public GetTextureFromRawFolder ( string filePath ) : Microsoft.Xna.Framework.Graphics.Texture2D
filePath string
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

GetTypeModel() public méthode

public GetTypeModel ( string typeId ) : TypeModel
typeId string
Résultat TypeModel

LoadMap() public méthode

public LoadMap ( string dataPath, bool forceReloadCached = false ) : MapModel
dataPath string
forceReloadCached bool
Résultat MapModel

Preload() public méthode

public Preload ( ) : void
Résultat void