增加文档
This commit is contained in:
@@ -1,25 +1,35 @@
|
||||
/*
|
||||
文件名:ActiveObject.nut
|
||||
路径:Game/ObjectClass/ActiveObject.nut
|
||||
创建日期:2025-10-03 02:50
|
||||
文件用途:
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description placeholder
|
||||
* @global
|
||||
* @param {*} Object
|
||||
*/
|
||||
class ActiveObject extends BaseObject {
|
||||
constructor(Object) {
|
||||
base.constructor(Object);
|
||||
}
|
||||
|
||||
constructor(Object) {
|
||||
base.constructor(Object);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @function
|
||||
* @param {integer} x
|
||||
* @param {integer} y
|
||||
* @param {integer} z
|
||||
* @returns {void}
|
||||
*/
|
||||
function SetSpeed(x, y, z) {
|
||||
local CurSpeed = sq_GetSpeed(C_Object);
|
||||
if (x == null) x = CurSpeed.x;
|
||||
if (y == null) y = CurSpeed.y;
|
||||
if (z == null) z = CurSpeed.z;
|
||||
sq_SetSpeed(C_Object, x, y, z);
|
||||
}
|
||||
|
||||
function SetSpeed(x, y, z) {
|
||||
local CurSpeed = sq_GetSpeed(C_Object);
|
||||
if (x == null) x = CurSpeed.x;
|
||||
if (y == null) y = CurSpeed.y;
|
||||
if (z == null) z = CurSpeed.z;
|
||||
sq_SetSpeed(C_Object, x, y, z);
|
||||
}
|
||||
|
||||
function GetSpeed() {
|
||||
return sq_GetSpeed(C_Object);
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @function
|
||||
* @returns {any}
|
||||
*/
|
||||
function GetSpeed() {
|
||||
return sq_GetSpeed(C_Object);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user