Skip to content

Commit

Permalink
1.修改属性复制对value的赋值。
Browse files Browse the repository at this point in the history
  • Loading branch information
klights committed Apr 14, 2015
1 parent 8a39773 commit 9c4a14b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion KBEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9c4a14b

Please sign in to comment.