Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.JsInterface
Game.JsInterface 的协作图:

class  HttpResponse

静态 Public 成员函数

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"

详细描述

在文件 JsInterface.cs15 行定义.

成员函数说明

◆ ErrorJsonResponse()

string Game.JsInterface.ErrorJsonResponse ( string error)
static

在文件 JsInterface.cs310 行定义.

这是这个函数的调用关系图:

◆ Evaluate() [1/2]

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

在文件 JsInterface.cs133 行定义.

函数调用图:

◆ Evaluate() [2/2]

string Game.JsInterface.Evaluate ( string str)
static

在文件 JsInterface.cs122 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Execute() [1/2]

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

在文件 JsInterface.cs113 行定义.

函数调用图:

◆ Execute() [2/2]

void Game.JsInterface.Execute ( string str)
static

在文件 JsInterface.cs104 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetAndRegisterHandlers()

void Game.JsInterface.GetAndRegisterHandlers ( string handlesName)
static

在文件 JsInterface.cs184 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetHandlers()

List< Function > Game.JsInterface.GetHandlers ( string str)
static

在文件 JsInterface.cs164 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ HandleHttpRequest()

async void Game.JsInterface.HandleHttpRequest ( HttpListenerContext context)
static

在文件 JsInterface.cs251 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Initiate()

void Game.JsInterface.Initiate ( )
static

在文件 JsInterface.cs29 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Invoke() [1/2]

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

在文件 JsInterface.cs154 行定义.

函数调用图:

◆ Invoke() [2/2]

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

在文件 JsInterface.cs144 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ RegisterEvent()

void Game.JsInterface.RegisterEvent ( )
static

在文件 JsInterface.cs70 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SetHttpPort()

void Game.JsInterface.SetHttpPort ( int port,
bool updateConfig = false )
static

在文件 JsInterface.cs201 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ StartHttpListener()

async Task Game.JsInterface.StartHttpListener ( )
static

在文件 JsInterface.cs215 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ StopHttpListener()

void Game.JsInterface.StopHttpListener ( )
static

在文件 JsInterface.cs228 行定义.

这是这个函数的调用关系图:

◆ Update()

void Game.JsInterface.Update ( )
static

在文件 JsInterface.cs238 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ engine

JsEngine Game.JsInterface.engine
static

在文件 JsInterface.cs16 行定义.

◆ fName

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

在文件 JsInterface.cs27 行定义.

◆ handlersDictionary

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

在文件 JsInterface.cs18 行定义.

◆ httpListener

HttpListener Game.JsInterface.httpListener
static

在文件 JsInterface.cs20 行定义.

◆ httpPassword

string Game.JsInterface.httpPassword
static

在文件 JsInterface.cs22 行定义.

◆ httpPort

int Game.JsInterface.httpPort
static

在文件 JsInterface.cs21 行定义.

◆ httpProcessing

bool Game.JsInterface.httpProcessing
static

在文件 JsInterface.cs23 行定义.

◆ httpResponse

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

在文件 JsInterface.cs26 行定义.

◆ httpScript

Prepared<Script> Game.JsInterface.httpScript
static

在文件 JsInterface.cs25 行定义.

◆ httpScriptPrepared

bool Game.JsInterface.httpScriptPrepared
static

在文件 JsInterface.cs24 行定义.

◆ loader

JsModLoader Game.JsInterface.loader
static

在文件 JsInterface.cs17 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Game/JsInterface.cs