增加文档

This commit is contained in:
2025-10-18 15:49:45 +08:00
parent a9b10b88c0
commit a753cf4998
7 changed files with 106 additions and 88 deletions

View File

@@ -1,6 +1,5 @@
/**
* Description placeholder
* @global
* @param {*} Object
*/
class ActiveObject extends BaseObject {
@@ -9,7 +8,7 @@ class ActiveObject extends BaseObject {
}
/**
*
* 设置三轴速度
* @function
* @param {integer} x
* @param {integer} y
@@ -25,7 +24,7 @@ class ActiveObject extends BaseObject {
}
/**
*
* 获取三轴速度
* @function
* @returns {any}
*/

View File

@@ -11,16 +11,16 @@ class BaseObject {
}
/**
*
* 获取坐标
* @function
* @returns {any}
*/
function GetPosition() {
return sq_GetPosition(C_Object);
}
//
/**
*
* 设置坐标
* @function
* @param {integer} x
* @param {integer} y
@@ -32,22 +32,22 @@ class BaseObject {
}
/**
*
* 获取储存器
* @function
* @param {string} Name
* @param {any} Type
* @returns {any}
* @param {string} Type
* @returns {array}
*/
function GetVars(Name, Type) {
return sq_GetVars(C_Object, Name, Type);
}
/**
*
* 设置储存器
* @function
* @param {string} Name
* @param {any} Type
* @param {any} Value
* @param {array} Value
* @returns {void}
*/
function SetVars(Name, Type, Value) {
@@ -55,7 +55,7 @@ class BaseObject {
}
/**
*
* 获取方向
* @function
* @returns {integer}
*/
@@ -64,7 +64,7 @@ class BaseObject {
}
/**
*
* 设置方向
* @function
* @param {integer} Dir
* @returns {void}

View File

@@ -3,36 +3,36 @@
* @param {*} Object
*/
class CharacterObject extends ActiveObject {
constructor(Object) {
base.constructor(Object);
}
constructor(Object) {
base.constructor(Object)
}
/**
*
* @function
* @returns {*}
*/
function GetState() {
return sq_GetState(C_Object);
}
/**
* 获取状态
* @function
* @returns {integer} 状态编号
*/
function GetState() {
return sq_GetState(C_Object)
}
/**
*
* @function
* @param {integer} State
* @returns {void}
*/
function SetState(State) {
sq_SetState(C_Object, State);
}
/**
* 设置状态
* @function
* @param {integer} State
* @returns {void}
*/
function SetState(State) {
sq_SetState(C_Object, State)
}
/**
*
* @function
* @param {any} key
* @returns {void}
*/
function SetAction(key) {
sq_SetAction(C_Object, key);
}
/**
* 设置动作
* @function
* @param {string} key
* @returns {void}
*/
function SetAction(key) {
sq_SetAction(C_Object, key)
}
}