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

v3:多个Index导出bin和cs文件,导致 calss Table 中部分方法冲突的问题 #61

Open
hesansi opened this issue Aug 12, 2020 · 11 comments

Comments

@hesansi
Copy link

hesansi commented Aug 12, 2020

类型表有2个:MyType 和 HeType
数据表有2个:MyData 和 HeData
索引表有2个:MyIndex 和 HeIndex
导出两个索引表,生成了2个对应bin文件和cs文件。但是2个cs文件中都包含了 class Table,于是两个 Table 类中的 ResetData 和 Deserialize 方法就冲突了,请问怎么解决?或者是我用的方式不对吗?

@davyxu
Copy link
Owner

davyxu commented Aug 12, 2020

不建议每个类型导出一次
如果实在需要,请添加参数-combinename=Table来设置不同的表类型前缀

1 similar comment
@davyxu
Copy link
Owner

davyxu commented Aug 12, 2020

不建议每个类型导出一次
如果实在需要,请添加参数-combinename=Table来设置不同的表类型前缀

@hesansi
Copy link
Author

hesansi commented Aug 12, 2020

不建议每个类型导出一次
如果实在需要,请添加参数-combinename=Table来设置不同的表类型前缀

感谢答复,使用 -combinename 解决了 Table 类方法冲突的问题。

还有另一个类似问题:
如果只使用一个类型表:MyType。然后 MyIndex 和 HeIndex 都使用该类型表,会出现导出的两个 cs 文件中类型冲突的问题,请问怎么解决?

@davyxu
Copy link
Owner

davyxu commented Aug 12, 2020

所以你为啥要拆成两次导

@hesansi
Copy link
Author

hesansi commented Aug 12, 2020

所以你为啥要拆成两次导

因为游戏里表格很多:NPC、玩家、道具、任务,以及其他表格,预计20多个,甚至更多。
每种表格导出一对 bin 和 cs 文件。
一方面是方便单独的 bin 资源热更新;另一方面是为了团队成员git更新的粒度更低。

@davyxu
Copy link
Owner

davyxu commented Aug 12, 2020

才20多,我们80多文件还不是一口气更新,考虑协作,可以用拆表功能,csv格式可以方便合并

@davyxu
Copy link
Owner

davyxu commented Aug 12, 2020

后续会考虑把自定义类型和表类型拆成不同的源码导出,可以多提建议

@hesansi
Copy link
Author

hesansi commented Aug 12, 2020

才20多,我们80多文件还不是一口气更新,考虑协作,可以用拆表功能,csv格式可以方便合并

了解了,感谢答复!

@hesansi
Copy link
Author

hesansi commented Aug 12, 2020

后续会考虑把自定义类型和表类型拆成不同的源码导出,可以多提建议

期待这个功能!

@davyxu
Copy link
Owner

davyxu commented Sep 9, 2020

最新的源码已经支持json/lua/binary按表导出, 有尝鲜需求可以自行编译二进制跑下

@shelllee
Copy link

后续会考虑把自定义类型和表类型拆成不同的源码导出,可以多提建议

期待,哈哈哈

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

3 participants