Skip to content

Commit e69b1f8

Browse files
committed
up
1 parent 5203209 commit e69b1f8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

KBEngine.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -848,19 +848,19 @@ public void onImportClientEntityDef(MemoryStream stream)
848848

849849
while(stream.length() > 0)
850850
{
851-
string scriptmethod_name = stream.readString();
851+
string scriptmodule_name = stream.readString();
852852
UInt16 scriptUtype = stream.readUint16();
853853
UInt16 propertysize = stream.readUint16();
854854
UInt16 methodsize = stream.readUint16();
855855
UInt16 base_methodsize = stream.readUint16();
856856
UInt16 cell_methodsize = stream.readUint16();
857857

858-
Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: import(" + scriptmethod_name + "), propertys(" + propertysize + "), " +
858+
Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: import(" + scriptmodule_name + "), propertys(" + propertysize + "), " +
859859
"clientMethods(" + methodsize + "), baseMethods(" + base_methodsize + "), cellMethods(" + cell_methodsize + ")!");
860860

861861

862-
ScriptModule module = new ScriptModule(scriptmethod_name);
863-
EntityDef.moduledefs[scriptmethod_name] = module;
862+
ScriptModule module = new ScriptModule(scriptmodule_name);
863+
EntityDef.moduledefs[scriptmodule_name] = module;
864864
EntityDef.idmoduledefs[scriptUtype] = module;
865865

866866
Type Class = module.script;
@@ -886,7 +886,7 @@ public void onImportClientEntityDef(MemoryStream stream)
886886
catch (Exception e)
887887
{
888888
string err = "KBEngine::Client_onImportClientEntityDef: " +
889-
scriptmethod_name + ".set_" + name + ", error=" + e.ToString();
889+
scriptmodule_name + ".set_" + name + ", error=" + e.ToString();
890890

891891
throw new Exception(err);
892892
}
@@ -915,7 +915,7 @@ public void onImportClientEntityDef(MemoryStream stream)
915915
module.idpropertys[properUtype] = savedata;
916916
}
917917

918-
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmethod_name + "), property(" + name + "/" + properUtype + ").");
918+
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmodule_name + "), property(" + name + "/" + properUtype + ").");
919919
};
920920

921921
while(methodsize > 0)
@@ -947,7 +947,7 @@ public void onImportClientEntityDef(MemoryStream stream)
947947
}
948948
catch (Exception e)
949949
{
950-
string err = "KBEngine::Client_onImportClientEntityDef: " + scriptmethod_name + "." + name + ", error=" + e.ToString();
950+
string err = "KBEngine::Client_onImportClientEntityDef: " + scriptmodule_name + "." + name + ", error=" + e.ToString();
951951
throw new Exception(err);
952952
}
953953
}
@@ -965,7 +965,7 @@ public void onImportClientEntityDef(MemoryStream stream)
965965
module.idmethods[methodUtype] = savedata;
966966
}
967967

968-
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmethod_name + "), method(" + name + ").");
968+
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmodule_name + "), method(" + name + ").");
969969
};
970970

971971
while(base_methodsize > 0)
@@ -993,7 +993,7 @@ public void onImportClientEntityDef(MemoryStream stream)
993993
module.base_methods[name] = savedata;
994994
module.idbase_methods[methodUtype] = savedata;
995995

996-
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmethod_name + "), base_method(" + name + ").");
996+
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmodule_name + "), base_method(" + name + ").");
997997
};
998998

999999
while(cell_methodsize > 0)
@@ -1020,12 +1020,12 @@ public void onImportClientEntityDef(MemoryStream stream)
10201020

10211021
module.cell_methods[name] = savedata;
10221022
module.idcell_methods[methodUtype] = savedata;
1023-
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmethod_name + "), cell_method(" + name + ").");
1023+
//Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: add(" + scriptmodule_name + "), cell_method(" + name + ").");
10241024
};
10251025

10261026
if(module.script == null)
10271027
{
1028-
Dbg.ERROR_MSG("KBEngine::Client_onImportClientEntityDef: module(" + scriptmethod_name + ") not found!");
1028+
Dbg.ERROR_MSG("KBEngine::Client_onImportClientEntityDef: module(" + scriptmodule_name + ") not found!");
10291029
}
10301030

10311031
foreach(string name in module.methods.Keys)
@@ -1034,7 +1034,7 @@ public void onImportClientEntityDef(MemoryStream stream)
10341034

10351035
if(module.script != null && module.script.GetMethod(name) == null)
10361036
{
1037-
Dbg.WARNING_MSG(scriptmethod_name + "(" + module.script + "):: method(" + name + ") no implement!");
1037+
Dbg.WARNING_MSG(scriptmodule_name + "(" + module.script + "):: method(" + name + ") no implement!");
10381038
}
10391039
};
10401040
}

0 commit comments

Comments
 (0)