C# Class Engine.Objects.GameFile

Mostra file Open project: Radnen/sphere-sfml Class Usage Examples

Public Methods

Method Description
GameFile ( ) : System
GetKeyAt ( int index ) : string
GetNumKeys ( ) : int
ReadFile ( string filename ) : bool
SetData ( string key, object data ) : void
TryGetData ( string key, bool &result ) : bool
TryGetData ( string key, double &result ) : bool
TryGetData ( string key, int &result ) : bool
TryGetData ( string key, string &result ) : bool
WriteFile ( string filename ) : void

Method Details

GameFile() public method

public GameFile ( ) : System
return System

GetKeyAt() public method

public GetKeyAt ( int index ) : string
index int
return string

GetNumKeys() public method

public GetNumKeys ( ) : int
return int

ReadFile() public method

public ReadFile ( string filename ) : bool
filename string
return bool

SetData() public method

public SetData ( string key, object data ) : void
key string
data object
return void

TryGetData() public method

public TryGetData ( string key, bool &result ) : bool
key string
result bool
return bool

TryGetData() public method

public TryGetData ( string key, double &result ) : bool
key string
result double
return bool

TryGetData() public method

public TryGetData ( string key, int &result ) : bool
key string
result int
return bool

TryGetData() public method

public TryGetData ( string key, string &result ) : bool
key string
result string
return bool

WriteFile() public method

public WriteFile ( string filename ) : void
filename string
return void