-
Notifications
You must be signed in to change notification settings - Fork 1
Engine API
-
Namespace
bde
-
Enum
class ResultType
- Type
ptr<Type>
- Type
sptr<Type>
- Type
uptr<Type>
- Type
error
-
Struct
Result
-
Class
BDEException
-
Class
Object
-
Class
Engine
- Data
toml::table Config
- Data
nk_context * NuklearGUI
- Data
sol::state Lua
- Destructor
virtual ~Engine
- Method
Result operator() (int argc, char * argv[])
- Method
virtual Result OnStartup(std::vector<std::string> const & args)
- Method
virtual void OnLoad()
- Method
virtual void OnUpdate()
- Method
virtual void OnRender()
- Method
virtual void OnShutdown()
- Data
-
Enum
Represents the success or failure of an operation.
Success
Failure
Alias for a raw pointer.
Alias for a shared_ptr
.
Alias for a unique_ptr
.
Represents a some error that doesn't trigger an exception.
Represents success or failure of an operation with a possible message.
The type of result.
The associated error message if Type
is Failure
.
Returns a simple integer representation of the Result
. Useful for returning from main
.
If there was an error, output error message. Return result regardless.
-
out
Thestd::ostream
to output the error message to.
NOTE: This method will most likely change to not use
std::ostream
but Raylib'sTraceLog
function.
Returns true
if Type
is Success
and false
if Type
is Failure
.
derives from
std::runtime_error
Parent class of all Engine exceptions.
Construct BDEException
with a message.
-
what
The message to pass.
Parent class of "managed" Engine classes.
Raw pointer wrapper.
Shared pointer wrapper.
Unique pointer wrapper.
Overridable destructor for Objects.
Overridable method called when the Object is constructed.
Overridable method called when the Object is destructed.
Parent class of the BlueDragonEngine.
Holds the current Engine configuration data.
See Also: toml++
The Engine's Nuklear context.
See Also: Nuklear
The Engine's Lua interpreter state.
See Also: Sol
Engine destructor. Can be extended.
Run the Engine with the given command-line arguments.
-
argc
Argument count (argc
frommain
) -
argv
Argument values (argv
frommain
)
- A
Success
if no errors occurred in the execution of the Engine. - A
Failure
if an error occurred in the execution of the Engine.
Overridable method called before Engine is setup. Used for processing command-line arguments.
-
args
Command-line arguments
- A
Success
if no errors occurred in the function. - A
Failure
if an error occurred in the execution of the Engine.
Overridable method called after the Engine is setup, but before the game loop starts.
Overridable method called at the beginning of each frame, used for updating game state.
Overridable method called each frame, used for drawing game graphics.
Overridable method called as the Engine is shutting down, but Engine facilities are still available.