Sfoglia il codice sorgente

皮肤协议数据结构新增字段body1

gitxsm 5 mesi fa
parent
commit
a50b39b727
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 1 0
      script/module/skin/Proto.lua
  2. 1 0
      script/module/skin/SkinLogic.lua

+ 1 - 0
script/module/skin/Proto.lua

@@ -17,6 +17,7 @@ SkinNet = {
 	{"order",	1,		"int"},  --配置表排序
 	{"type",	1,		"byte"},  --类型
 	{"attrs",	5,		Attr},  --属性
+	{"body1",	1,		"int"},  --模型
 }
 SkinBagNet = {
 	{"data",	1,	SkinNet},

+ 1 - 0
script/module/skin/SkinLogic.lua

@@ -109,6 +109,7 @@ local function skinNetGen(human,net,id)
 	net.camp = skinCfg.camp
 	net.order = skinCfg.order
 	net.type = skinCfg.type
+    net.body1 = skinCfg.body1 or 0
     local attrLen = 0
 	for k,v in ipairs(skinCfg.attrs) do
         attrLen = attrLen + 1