focus-creative-games / luban

luban是一个强大、易用、优雅、稳定的游戏配置解决方案。luban is a powerful, easy-to-use, elegant and stable game configuration solution.
https://code-philosophy.com/
MIT License
3.32k stars 526 forks source link

Fix the export of enum and bean. (Related to PR#119) #125

Closed kenchou closed 5 months ago

kenchou commented 5 months ago

PR #119 导致有些 enumbean 没法导出。 group 都没有设置,奇怪的是有些 enumbean 是能够导出的,有些则不能。原因未知。

由于是第一次使用 Luban, 如果是我理解不到位请指出,谢谢。

pirunxi commented 5 months ago

如果enum或者bean被某个导出的table引用,就会导出,否则默认不导出。更早的版本默认所有enum都导出,因此调整此行为后有些enum不再被导出了。

kenchou commented 5 months ago

目前版本导出有问题,即使被导出的表引用,也有些 enum 和 bean 没被导出。

pirunxi commented 5 months ago

有这样的事情?这样肯定会导致编译错误的。 给我们一个复现例子