User Tools

Site Tools


scripting:restcallback

This is an old revision of the document!


RestCallback

Class: RestCallback

Parent Class: (?none?)

Location: scripts/GameLib/online/RestApi.c

Description: RestCallback class.

Common usage

The baseworld component is returned on the GetWorld() global command.

Typical usage : find an Entity.

class TestCallback : RestCallback
{
    override void OnSuccess( string data, int dataSize )
    {
        Print(" !!! OnSuccess() size=" + dataSize );
        if( dataSize > 0 )
            Print(data); // !!! NOTE: Print() will not output string longer than 1024b, check your dataSize !!!
    };
}

Functions

GET();

GET(RestCallback cb, string request);

Return type: int

scripting/restcallback.1661435284.txt.gz · Last modified: 2022/08/25 14:48 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki