Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kbengine committed Sep 15, 2015
1 parent b95bd6b commit 04e4cff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions KBEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,15 @@ public void createDataTypeFromStream(MemoryStream stream, bool canprint)
string name = stream.readString();
string valname = stream.readString();

/* 有一些匿名类型,我们需要提供一个唯一名称放到datatypes中
如:
<onRemoveAvatar>
<Arg> ARRAY <of> INT8 </of> </Arg>
</onRemoveAvatar>
*/
if(valname.Length == 0)
valname = "Null_" + utype;

if(canprint)
Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: importAlias(" + name + ":" + valname + ":" + utype + ")!");

Expand Down

0 comments on commit 04e4cff

Please sign in to comment.