GeonBitGame Class |
Namespace: GeonBit
public abstract class GeonBitGame
The GeonBitGame type exposes the following members.
Name | Description | |
---|---|---|
GeonBitGame |
Create the main game class.
|
Name | Description | |
---|---|---|
InitParams |
Initialize params you can setup during the constructor of your game class.
These params affect how GeonBit init itself. Most of these settings can be changed later manually.
Note: after constructor is done, this object is deleted and replaced with null.
| |
Resources |
Get GeonBit custom content class.
| |
UiEnabled |
Get if geonbit UI currently enabled
|
Name | Description | |
---|---|---|
Draw |
This is called when the game should draw itself.
You don't need to call clear, draw, etc. Just add custom drawing logic if needed.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Exit |
Exit the application.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetSupportedResolutions |
Get supported resolutions.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Allows the game to perform any initialization it needs to before starting to run.
| |
MakeFullscreen |
Make game work in fullscreen mode.
| |
MakeFullscreenForHeight |
Make game work in fullscreen mode using only resolution height (width will be automatically calculated for best fit).
| |
MakeFullscreenForWidth |
Make game work in fullscreen mode using only resolution width (height will be automatically calculated for best fit).
| |
PreInit |
Do some pre-initialize stuff (mostly apply init params).
| |
Resize |
Resize window.
| |
SetTitle |
Set window title.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Allows the game to run custom frame-based logic.
|