Click or drag to resize
GeonBitGame Class
GeonBit's basic 'Game' class, that replaces MonoGame 'Game'. To use GeonBit, you need to implement a type of this class and implement your Draw(), Initialize() and Update() functions. Note: since GeonBit already handles rendering and main loop internally, usually you only need to implement Initialize() and let the components do all the logic. After creating your GeonBitGame class, use it from your Program file like this: GeonBitMain.Instance.Run(new EmptyGeonBitMain());
Inheritance Hierarchy
SystemObject
  GeonBitGeonBitGame

Namespace:  GeonBit
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class GeonBitGame

The GeonBitGame type exposes the following members.

Constructors
  NameDescription
Public methodGeonBitGame
Create the main game class.
Top
Properties
  NameDescription
Public propertyInitParams
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.
Public propertyResources
Get GeonBit custom content class.
Public propertyUiEnabled
Get if geonbit UI currently enabled
Top
Methods
  NameDescription
Public methodDraw
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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Exit the application.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSupportedResolutions
Get supported resolutions.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Allows the game to perform any initialization it needs to before starting to run.
Public methodMakeFullscreen
Make game work in fullscreen mode.
Public methodMakeFullscreenForHeight
Make game work in fullscreen mode using only resolution height (width will be automatically calculated for best fit).
Public methodMakeFullscreenForWidth
Make game work in fullscreen mode using only resolution width (height will be automatically calculated for best fit).
Public methodPreInit
Do some pre-initialize stuff (mostly apply init params).
Public methodResize
Resize window.
Public methodSetTitle
Set window title.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Allows the game to run custom frame-based logic.
Top
See Also