Supports turn-based games where there are a high number of game turns per second (>5) that are automatically ended.
More...
|
int | TargetUpdatesPerSecond [get, set] |
| The number of updates we second the game should run at. More...
|
|
int | TurnDelay [get, set] |
| Configure the lag between giving input and actually receiving that input. A lower value will cause stuttering on slow networks, but user responsiveness will be higher. A higher value will cause less stuttering, but lower user responsiveness. More...
|
|
float | InterpolationPercentage [get] |
| Returns how far along we are until the next update. More...
|
|
Supports turn-based games where there are a high number of game turns per second (>5) that are automatically ended.
Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.AutomaticTurnGame |
( |
NetworkContext |
context, |
|
|
int |
targetUpdatesPerSecond |
|
) |
| |
Create a new AutomaticTurnGame.
- Parameters
-
context | The networking context. |
targetUpdatesPerSecond | The number of updates/turns that will occur every second. |
void Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.Dispose |
( |
| ) |
|
Clean up the game from the NetworkContext.
void Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.SendCommand |
( |
List< IGameCommand > |
commands | ) |
|
Send the given set of game commands to the server. It will be processed at a later point by every client.
- Parameters
-
commands | The commands to send. |
void Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.Update |
( |
float |
deltaTime | ) |
|
Update the game. Potentially dispatch game commands for execution by all computers if enough time has elapsed.
- Parameters
-
deltaTime | The amount of time that has elapsed since the last call to Update. |
float Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.InterpolationPercentage |
|
get |
Returns how far along we are until the next update.
int Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.TargetUpdatesPerSecond |
|
getset |
The number of updates we second the game should run at.
int Forge.Networking.AutomaticTurnGame.AutomaticTurnGame.TurnDelay |
|
getset |
Configure the lag between giving input and actually receiving that input. A lower value will cause stuttering on slow networks, but user responsiveness will be higher. A higher value will cause less stuttering, but lower user responsiveness.
The documentation for this class was generated from the following file:
- Forge.Networking/AutomaticTurnGame/AutomaticTurnGame.cs