Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

申请数组切割符支持多个字符进行切割 #118

Open
wulongzhong opened this issue Apr 19, 2023 · 2 comments
Open

申请数组切割符支持多个字符进行切割 #118

wulongzhong opened this issue Apr 19, 2023 · 2 comments

Comments

@wulongzhong
Copy link

如出现 道具id:道具数量|道具id:道具数量 这种结构时,这里出现了:|这两个字符,如果都使用|的话不利于在表重浏览数据,所以使用了两个字符,但是这样子的话数组切割只能切割成字符串数组,希望能够在数组切割的标识里填入:|这两个字符,将这行数据拆分成一个int数组

@davyxu
Copy link
Owner

davyxu commented Apr 19, 2023

导入表到你的逻辑间, 还有一个表数据处理验证层, 转换为逻辑方便使用的数据结构

@wulongzhong
Copy link
Author

逻辑层肯定是还要继续处理,主要的目的是为了节省解析配置的时间,目前的切割的话,只能使用string数组,导处的proto数据也是string原文,没有做过任何优化,读表的时候也还要再从字符串转成数字,在数值类的游戏里就有点浪费加载时间了,多的话可能两三秒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants