From 9c4a14b01ecc43e148c8854c5026d4fa9d2f91fe Mon Sep 17 00:00:00 2001 From: k_light <759925088@qq.com> Date: Wed, 15 Apr 2015 01:32:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=B1=9E=E6=80=A7=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=AF=B9value=E7=9A=84=E8=B5=8B=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity.cs | 6 ++++-- KBEngine.cs | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Entity.cs b/Entity.cs index dd7a008..1952ad6 100644 --- a/Entity.cs +++ b/Entity.cs @@ -43,10 +43,12 @@ public Entity() { Property newp = new Property(); newp.name = e.name; - newp.properUtype = e.properUtype; newp.utype = e.utype; - newp.val = e.val; + newp.properUtype = e.properUtype; + newp.aliasID = e.aliasID; + newp.defaultValStr = e.defaultValStr; newp.setmethod = e.setmethod; + newp.val = newp.utype.parseDefaultValStr(newp.defaultValStr); defpropertys_.Add(e.name, newp); iddefpropertys_.Add(e.properUtype, newp); } diff --git a/KBEngine.cs b/KBEngine.cs index d351803..96382bf 100644 --- a/KBEngine.cs +++ b/KBEngine.cs @@ -830,11 +830,12 @@ public void onImportClientEntityDef(MemoryStream stream) Property savedata = new Property(); savedata.name = name; + savedata.utype = utype; savedata.properUtype = properUtype; savedata.aliasID = ialiasID; savedata.defaultValStr = defaultValStr; - savedata.utype = utype; savedata.setmethod = setmethod; + savedata.val = savedata.utype.parseDefaultValStr(savedata.defaultValStr); module.propertys[name] = savedata;