Click or drag to resize
GeonBitMain Class
GeonBit engine main manager. This singleton class contains misc configuration for GeonBit, the main Initialize function, and Draw() / Update() functions that roll the entire engine. To use GeonBit, you need to create a Game class that do the following: 1. call GeonBitMain.Instance.Initialize() from its Initialize() function. 2. call GeonBitMain.Instance.Update() from its Update() function. 3. call GeonBitMain.Instance.Draw() from its Draw() function.
Inheritance Hierarchy

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

The GeonBitMain type exposes the following members.

Properties
  NameDescription
Public propertyActiveScene
Get the ActiveScene this entity is inside.
(Inherited from EasyManagersGetters.)
Public propertyApplication
Get the Application manager.
(Inherited from EasyManagersGetters.)
Public propertyConfigStorage
Get the config storage manager.
(Inherited from EasyManagersGetters.)
Public propertyDebugMode
Return if we are currently in debug mode.
Public propertyDiagnostic
Get the Diagnostic manager.
(Inherited from EasyManagersGetters.)
Public propertyGameFiles
Get the game files manager.
(Inherited from EasyManagersGetters.)
Public propertyGameInput
Get the Input manager.
(Inherited from EasyManagersGetters.)
Public propertyGraphicsManager
Get the Graphics manager.
(Inherited from EasyManagersGetters.)
Public propertyStatic memberInstance
Get main instance.
Public propertyPlugins
Get the plugins manager.
(Inherited from EasyManagersGetters.)
Public propertyPrototypes
Get the Prototypes manager.
(Inherited from EasyManagersGetters.)
Public propertyResources
Get resources manager.
(Inherited from EasyManagersGetters.)
Public propertyScenePhysics
Get the currently active physical world.
(Inherited from EasyManagersGetters.)
Public propertySoundManager
Get the Sound manager.
(Inherited from EasyManagersGetters.)
Public propertyTimeManager
Get the TimeManager manager.
(Inherited from EasyManagersGetters.)
Public propertyUiEnabled
Get if the built-in UI system currently enabled.
Top
Methods
  NameDescription
Public methodDraw
Draw everything. Note: need to be called after clearing the device.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initialize engine.
Public methodRegisterManager
Register a manager class. Note: must be called before calling Initialize().
Public methodRun
Run GeonBit engine. Call this function from your program Main() function, with the implementation of your GeonBitGame class.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Do per-frame events (call this inside your Update() function).
Top
Fields
  NameDescription
Public fieldMaxTimeFactorToRun
If time factor in current frame (eg seconds passed from last frame) is bigger than this number, skip current frame. This is to prevent buggy behavior when getting focus back / continue after debugging for too long.
Public fieldPauseWhenNotFocused
If true, will not run when application is not focused.
Public fieldStatic memberVERSION
Current GeonBit version identifier.
Top
See Also