给 动画类 和 精灵类 重写typeof

This commit is contained in:
Lenheart 2024-12-18 18:51:09 +08:00
parent 04a5d61bb2
commit f9a88932f4
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,10 @@ class Animation extends Actor {
//附加选项 //附加选项
AdditionalOptions = null; AdditionalOptions = null;
function _typeof() {
return "animation";
}
constructor(...) { constructor(...) {
base.constructor(); base.constructor();

View File

@ -8,6 +8,10 @@ class CL_SpriteObject extends CL_BaseObject {
SpriteFrame = null; SpriteFrame = null;
function _typeof() {
return "sprite";
}
constructor(...) { constructor(...) {
local C_Object; local C_Object;
//创建空精灵 //创建空精灵