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< HttpResponse > httpResponse = new()
const string fName = "JsInterface"

详细描述

在文件 JsInterface.cs 第 15 行定义.

成员函数说明

◆ ErrorJsonResponse()

string Game.JsInterface.ErrorJsonResponse ( string error)
static

在文件 JsInterface.cs 第 310 行定义.

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

◆ Evaluate() [1/2]

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

在文件 JsInterface.cs 第 133 行定义.

函数调用图:

◆ Evaluate() [2/2]

string Game.JsInterface.Evaluate ( string str)
static

在文件 JsInterface.cs 第 122 行定义.

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

◆ Execute() [1/2]

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

在文件 JsInterface.cs 第 113 行定义.

函数调用图:

◆ Execute() [2/2]

void Game.JsInterface.Execute ( string str)
static

在文件 JsInterface.cs 第 104 行定义.

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

◆ GetAndRegisterHandlers()

void Game.JsInterface.GetAndRegisterHandlers ( string handlesName)
static

在文件 JsInterface.cs 第 184 行定义.

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

◆ GetHandlers()

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

在文件 JsInterface.cs 第 164 行定义.

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

◆ HandleHttpRequest()

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

在文件 JsInterface.cs 第 251 行定义.

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

◆ Initiate()

void Game.JsInterface.Initiate ( )
static

在文件 JsInterface.cs 第 29 行定义.

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

◆ Invoke() [1/2]

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

在文件 JsInterface.cs 第 154 行定义.

函数调用图:

◆ Invoke() [2/2]

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

在文件 JsInterface.cs 第 144 行定义.

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

◆ RegisterEvent()

void Game.JsInterface.RegisterEvent ( )
static

在文件 JsInterface.cs 第 70 行定义.

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

◆ SetHttpPort()

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

在文件 JsInterface.cs 第 201 行定义.

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

◆ StartHttpListener()

async Task Game.JsInterface.StartHttpListener ( )
static

在文件 JsInterface.cs 第 215 行定义.

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

◆ StopHttpListener()

void Game.JsInterface.StopHttpListener ( )
static

在文件 JsInterface.cs 第 228 行定义.

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

◆ Update()

void Game.JsInterface.Update ( )
static

在文件 JsInterface.cs 第 238 行定义.

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

类成员变量说明

◆ engine

JsEngine Game.JsInterface.engine
static

在文件 JsInterface.cs 第 16 行定义.

◆ fName

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

在文件 JsInterface.cs 第 27 行定义.

◆ handlersDictionary

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

在文件 JsInterface.cs 第 18 行定义.

◆ httpListener

HttpListener Game.JsInterface.httpListener
static

在文件 JsInterface.cs 第 20 行定义.

◆ httpPassword

string Game.JsInterface.httpPassword
static

在文件 JsInterface.cs 第 22 行定义.

◆ httpPort

int Game.JsInterface.httpPort
static

在文件 JsInterface.cs 第 21 行定义.

◆ httpProcessing

bool Game.JsInterface.httpProcessing
static

在文件 JsInterface.cs 第 23 行定义.

◆ httpResponse

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

在文件 JsInterface.cs 第 26 行定义.

◆ httpScript

Prepared<Script> Game.JsInterface.httpScript
static

在文件 JsInterface.cs 第 25 行定义.

◆ httpScriptPrepared

bool Game.JsInterface.httpScriptPrepared
static

在文件 JsInterface.cs 第 24 行定义.

◆ loader

JsModLoader Game.JsInterface.loader
static

在文件 JsInterface.cs 第 17 行定义.


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