My Project v1
Project
载入中...
搜索中...
未找到
Game.JsInterface
Game.JsInterface 的协作图:

class  HttpResponse
 

静态 Public 成员函数

static bool CheckInitJsFileRelease ()
 
static void Initiate ()
 
static void RegisterEvent ()
 
static void Execute (string str)
 
static void Execute (Prepared< Script > script)
 
static string Evaluate (string str)
 
static string Evaluate (Prepared< Script > script)
 
static JsValue Invoke (string str, params object[] arguments)
 
static JsValue Invoke (JsValue jsValue, params object[] arguments)
 
static List< Function > GetHandlers (string str)
 
static void GetAndRegisterHandlers (string handlesName)
 
static void SetHttpPort (int port, bool updateConfig=false)
 
static async Task StartHttpListener ()
 
static void StopHttpListener ()
 
static void Update ()
 
static async void HandleHttpRequest (HttpListenerContext context)
 
static string ErrorJsonResponse (string error)
 

静态 Public 属性

static JsEngine engine
 
static JsModLoader loader
 
static Dictionary< string, List< Function > > handlersDictionary
 
static HttpListener httpListener
 
static int httpPort
 
static string httpPassword
 
static bool httpProcessing
 
static bool httpScriptPrepared
 
static Prepared< Script > httpScript
 
static TaskCompletionSource< HttpResponsehttpResponse = new()
 
const string fName = "JsInterface"
 

成员函数说明

◆ CheckInitJsFileRelease()

static bool Game.JsInterface.CheckInitJsFileRelease ( )
static
这是这个函数的调用关系图:

◆ ErrorJsonResponse()

static string Game.JsInterface.ErrorJsonResponse ( string error)
static
这是这个函数的调用关系图:

◆ Evaluate() [1/2]

static string Game.JsInterface.Evaluate ( Prepared< Script > script)
static

◆ Evaluate() [2/2]

static string Game.JsInterface.Evaluate ( string str)
static
这是这个函数的调用关系图:

◆ Execute() [1/2]

static void Game.JsInterface.Execute ( Prepared< Script > script)
static

◆ Execute() [2/2]

static void Game.JsInterface.Execute ( string str)
static
这是这个函数的调用关系图:

◆ GetAndRegisterHandlers()

static void Game.JsInterface.GetAndRegisterHandlers ( string handlesName)
static
函数调用图:
这是这个函数的调用关系图:

◆ GetHandlers()

static List< Function > Game.JsInterface.GetHandlers ( string str)
static
这是这个函数的调用关系图:

◆ HandleHttpRequest()

static async void Game.JsInterface.HandleHttpRequest ( HttpListenerContext context)
static
函数调用图:
这是这个函数的调用关系图:

◆ Initiate()

static void Game.JsInterface.Initiate ( )
static
函数调用图:
这是这个函数的调用关系图:

◆ Invoke() [1/2]

static JsValue Game.JsInterface.Invoke ( JsValue jsValue,
params object[] arguments )
static

◆ Invoke() [2/2]

static JsValue Game.JsInterface.Invoke ( string str,
params object[] arguments )
static
这是这个函数的调用关系图:

◆ RegisterEvent()

static void Game.JsInterface.RegisterEvent ( )
static
函数调用图:
这是这个函数的调用关系图:

◆ SetHttpPort()

static void Game.JsInterface.SetHttpPort ( int port,
bool updateConfig = false )
static
函数调用图:
这是这个函数的调用关系图:

◆ StartHttpListener()

static async Task Game.JsInterface.StartHttpListener ( )
static
函数调用图:
这是这个函数的调用关系图:

◆ StopHttpListener()

static void Game.JsInterface.StopHttpListener ( )
static
这是这个函数的调用关系图:

◆ Update()

static void Game.JsInterface.Update ( )
static
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ engine

JsEngine Game.JsInterface.engine
static

◆ fName

const string Game.JsInterface.fName = "JsInterface"
static

◆ handlersDictionary

Dictionary<string, List<Function> > Game.JsInterface.handlersDictionary
static

◆ httpListener

HttpListener Game.JsInterface.httpListener
static

◆ httpPassword

string Game.JsInterface.httpPassword
static

◆ httpPort

int Game.JsInterface.httpPort
static

◆ httpProcessing

bool Game.JsInterface.httpProcessing
static

◆ httpResponse

TaskCompletionSource<HttpResponse> Game.JsInterface.httpResponse = new()
static

◆ httpScript

Prepared<Script> Game.JsInterface.httpScript
static

◆ httpScriptPrepared

bool Game.JsInterface.httpScriptPrepared
static

◆ loader

JsModLoader Game.JsInterface.loader
static

该类的文档由以下文件生成: