Справочник функций
GameMaker Studio · GML · Setup & session
gmda_HTTPfunction
Routes each HTTP response and pushes result structs onto the event queue. Call in the Async HTTP event.
Synchronous (returns directly)
Signature
gmda_HTTPfunction() -> realWhat it does
Matches the incoming async_load reply against Gamdato's pending request map, parses the JSON, updates connectivity and session state, and pushes the matching result struct (or an error) onto the event queue that gmda_pollEvent() drains.
Parameters
This function takes no parameters.
How to call it
Call it once in the persistent controller's Async HTTP event. It ignores any request that Gamdato did not send, so it is safe to call even if your game makes its own http_request() calls.
Returns: 1 if the response belonged to Gamdato, otherwise 0.
Example
// objGamdatoController Async HTTP event
gmda_HTTPfunction();Use cases
- Deliver every asynchronous Gamdato result back into your game loop.
- Let one controller object handle all backend networking.