32 lines
634 B
Plaintext
32 lines
634 B
Plaintext
class BaseObject {
|
|
//c++对象指针
|
|
C_Object = null;
|
|
|
|
constructor(Object) {
|
|
C_Object = Object;
|
|
}
|
|
|
|
function GetPosition() {
|
|
return sq_GetPosition(C_Object);
|
|
}
|
|
|
|
function SetPosition(x, y, z) {
|
|
sq_SetPosition(C_Object, x, y, z);
|
|
}
|
|
|
|
function GetVars(Name, Type) {
|
|
return sq_GetVars(C_Object, Name, Type);
|
|
}
|
|
|
|
function SetVars(Name, Type, Value) {
|
|
sq_SetVars(C_Object, Name, Type, Value);
|
|
}
|
|
|
|
function GetDirection() {
|
|
return sq_GetDirection(C_Object);
|
|
}
|
|
|
|
function SetDirection(Dir) {
|
|
sq_SetDirection(C_Object, Dir);
|
|
}
|
|
} |