Files
fc/dev/project/assets/Scripts/nx/kernel/nx.object.js
T
2026-05-23 22:10:14 +08:00

60 lines
1.2 KiB
JavaScript

/*******************************************************************************
*
* Nx基本对象
*
*
*
* 2021.12.10
******************************************************************************/
var NxObject = cc.Class( {
name: "NxObject",
// 创建
ctor: function() {
this.nxUUID = ""; // 唯一编号(Factory分配)
},
// 获取编号
getUUID: function() {
return this.nxUUID;
},
// 初始化
initialize: function( _args ) {
return true;
},
// 销毁
uninitialize: function() {
// 插件统一卸载
if( nx.plugin ) {
nx.plugin.remove( this );
}
return true;
},
/***
* *********************************************************************
* 调试辅助
* *********************************************************************
*/
// 明细输出
dumpInfos: function() {
// 基本信息
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;