From 04e4cffdc1a56714550e27cc4ea0749121114cf8 Mon Sep 17 00:00:00 2001 From: kbengine Date: Tue, 15 Sep 2015 16:31:31 +0800 Subject: [PATCH] up --- KBEngine.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/KBEngine.cs b/KBEngine.cs index 2469f54..8d6b02f 100644 --- a/KBEngine.cs +++ b/KBEngine.cs @@ -735,6 +735,15 @@ public void createDataTypeFromStream(MemoryStream stream, bool canprint) string name = stream.readString(); string valname = stream.readString(); + /* 有一些匿名类型,我们需要提供一个唯一名称放到datatypes中 + 如: + + ARRAY INT8 + + */ + if(valname.Length == 0) + valname = "Null_" + utype; + if(canprint) Dbg.DEBUG_MSG("KBEngine::Client_onImportClientEntityDef: importAlias(" + name + ":" + valname + ":" + utype + ")!");