C# 클래스 Pokemon3D.GameModes.GameMode

Contains methods and members that control a GameMode, a collection of maps, scripts and assets.
상속: Pokemon3D.Common.GameContextObject, IDataModelContainer, IDisposable
파일 보기 프로젝트 열기: nilllzz/Pokemon3D 1 사용 예제들

공개 메소드들

메소드 설명
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