From 6a9883b425e53e714b9a930ec70b7544999611a6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 08 五月 2025 12:01:45 +0800
Subject: [PATCH] 16 卡牌服务端(db数据备档、加载;仙盟基础转到MapServer;)
---
PySysDB/生成IpyGameDataPY/IpyGameDataPYCreater.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git "a/PySysDB/\347\224\237\346\210\220IpyGameDataPY/IpyGameDataPYCreater.py" "b/PySysDB/\347\224\237\346\210\220IpyGameDataPY/IpyGameDataPYCreater.py"
index 673f776..567e787 100644
--- "a/PySysDB/\347\224\237\346\210\220IpyGameDataPY/IpyGameDataPYCreater.py"
+++ "b/PySysDB/\347\224\237\346\210\220IpyGameDataPY/IpyGameDataPYCreater.py"
@@ -94,12 +94,14 @@
continue
if "struct" in line:
- tagIndex = line.index("tag")
+ line = line.strip()
if "{" in line:
- tableName = line[tagIndex + 3:line.index("{")]
+ tableName = line[6:line.index("{")]
else:
- tableName = line[tagIndex + 3:]
- tableName = tableName.replace(" ", "") # 表名英文名
+ tableName = line[6:]
+ tableName = tableName.replace("\t", "").replace(" ", "") # 表名英文名
+ if tableName.startswith("tag"):
+ tableName = tableName[3:]
continue
noteInfo = " #" # 字段注释说明
@@ -115,7 +117,7 @@
if not fieldType:
if "struct" not in line and "{" not in line and "}" not in line:
print "### 类型定义错误表 ###"
- print "struct tag%s" % tableName
+ print "struct %s" % tableName
print line
raise
continue
--
Gitblit v1.8.0