Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
IEngineDispatcher.cs
1namespace Gondwana;
2
13public interface IEngineDispatcher
14{
27 bool IsOnEngineThread { get; }
28
43 void Post(Action action);
44
55 Task PostAsync(Func<Task> action);
56
73 void Drain();
74
86}
Defines a contract for dispatching actions to the engine's background thread in a thread-safe manner....
void Post(Action action)
Posts an action to be executed on the engine thread. Implementations may execute the action inline if...
bool IsOnEngineThread
Gets a value indicating whether the current thread is the engine thread to which this dispatcher is b...
Task PostAsync(Func< Task > action)
Posts an asynchronous action to be executed on the engine thread and returns a task that completes wh...
void BindToCurrentThread()
Binds this dispatcher to the current thread, establishing it as the engine thread....
void Drain()
Executes all queued actions that have been posted to this dispatcher since the last call to Drain....