/** * Description placeholder * @param {*} Object */ class BaseObject { //c++对象指针 C_Object = null; constructor(Object) { C_Object = Object; } /** * 获取坐标 * @function * @returns {any} */ function GetPosition() { return sq_GetPosition(C_Object); } /** * 设置坐标 * @function * @param {integer} x * @param {integer} y * @param {integer} z * @returns {void} */ function SetPosition(x, y, z) { sq_SetPosition(C_Object, x, y, z); } /** * 获取储存器 * @function * @param {string} Name * @param {string} Type * @returns {array} */ function GetVars(Name, Type) { return sq_GetVars(C_Object, Name, Type); } /** * 设置储存器 * @function * @param {string} Name * @param {any} Type * @param {array} Value * @returns {void} */ function SetVars(Name, Type, Value) { sq_SetVars(C_Object, Name, Type, Value); } /** * 获取方向 * @function * @returns {integer} */ function GetDirection() { return sq_GetDirection(C_Object); } /** * 设置方向 * @function * @param {integer} Dir * @returns {void} */ function SetDirection(Dir) { sq_SetDirection(C_Object, Dir); } }