Files

58 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2026-05-24 10:21:26 +08:00
"use strict";
cc._RF.push(module, 'd6f13gZkchIw4UAeKcnKxs5', 'nx.object');
// Scripts/nx/kernel/nx.object.js
"use strict";
/*******************************************************************************
*
* Nx基本对象
*
*
*
* 2021.12.10
******************************************************************************/
var NxObject = cc.Class({
name: "NxObject",
// 创建
ctor: function ctor() {
this.nxUUID = ""; // 唯一编号(Factory分配)
},
// 获取编号
getUUID: function getUUID() {
return this.nxUUID;
},
// 初始化
initialize: function initialize(_args) {
return true;
},
// 销毁
uninitialize: function uninitialize() {
// 插件统一卸载
if (nx.plugin) {
nx.plugin.remove(this);
}
return true;
},
/***
* *********************************************************************
* 调试辅助
* *********************************************************************
*/
// 明细输出
dumpInfos: function dumpInfos() {
// 基本信息
cc.log("OBJECT:");
cc.log("\t\t Name:", this.name);
cc.log("\t\t UUID:", this.nxUUID);
cc.log("\t\t ClassName:", this.__classname__);
}
});
// 模块导出
module.exports = NxObject;
cc._RF.pop();