RaylibGameBase<R extends RaylibBase> class
abstract
Platform-agnostic game lifecycle interface for Raylib applications.
Implement this to define your game logic independently of the backend. Each backend provides its own RaylibGameBase subclass and runRaylib function that drives the lifecycle in a platform-appropriate way.
The expected call order is:
- init set up your game state and call RaylibCoreModuleBase.InitWindow
- loop called every frame
- close called when shouldClose returns
true; call RaylibCoreModuleBase.CloseWindow here - dispose release Dart-side resources
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
R rl) → void -
dispose(
R rl) → void -
init(
R rl) → void -
loop(
R rl) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldClose(
R rl) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited