Otter
0.9.8.91
2d Game Development Framework based on SFML.Net
|
Class that represents a player session. Use this for maintaining and using information about a player. For example a two player game might have two sessions, one for each player, each with their own controls configured and save data. More...
Public Member Functions | |
T | GetController< T > () |
Gets the Controller as a specific type of Controller. More... | |
Session (Game game, string name) | |
Create a new Session. More... | |
Static Public Member Functions | |
static Session | Create (string name) |
Create a new Session using the current Game.Instance. More... | |
static Session | Create (Enum name) |
Public Attributes | |
string | Name = "" |
The name of this Session. This is important as it will determine the name of save data files and you can also find a session by name. More... | |
Controller | Controller = new Controller() |
The Controller to use for this Session. More... | |
Properties | |
int | Id [get, set] |
The Id of this session in the Game. More... | |
DataSaver | Data [get, set] |
Game | Game [get, set] |
The game that manages this session. More... | |
Class that represents a player session. Use this for maintaining and using information about a player. For example a two player game might have two sessions, one for each player, each with their own controls configured and save data.
Otter.Session.Session | ( | Game | game, |
string | name | ||
) |
|
static |
Create a new Session using the current Game.Instance.
T Otter.Session.GetController< T > | ( | ) |
Gets the Controller as a specific type of Controller.
T | The type of Controller. |
T | : | Controller |
Controller Otter.Session.Controller = new Controller() |
The Controller to use for this Session.
string Otter.Session.Name = "" |
The name of this Session. This is important as it will determine the name of save data files and you can also find a session by name.
|
getset |
The game that manages this session.
|
getset |
The Id of this session in the Game.