User Tools

Site Tools


scripting:restcontext

This is an old revision of the document!


RestApi

Class: RestContext

Parent Class: (?none?)

Location: scripts/GameLib/generated/online/RestContext.c

Description: RestContext class.

Common usage

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

Typical usage : find an Entity.

GetWorld().FindEntityByName( string entity-name )

Functions

GET();

GET(RestCallback cb, string request);

Return type: int

GET_now();

GET_now( string request);

Return type: string

FILE();

FILE(RestCallback cb, string request, string filename);

Return type: int

FILE_now();

FILE_now( string request,string filename);

Return type: string

POST();

POST(RestCallback cb, string request,string data);

Return type: int

POST_now();

POST_now( string request,string data);

Return type: string

reset();

reset(); 

Return type: void

scripting/restcontext.1661434733.txt.gz · Last modified: 2022/08/25 14:38 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki