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

Server: Generate enums from tweakdbstr at build time #13

Open
MeFisto94 opened this issue Dec 24, 2023 · 0 comments
Open

Server: Generate enums from tweakdbstr at build time #13

MeFisto94 opened this issue Dec 24, 2023 · 0 comments

Comments

@MeFisto94
Copy link
Member

And commit the results so tweakdbstr.txt is not required to build the code. It may be done whenever there's adjustments to the tweakdbstr or like only once.

What counts is that we have something like:

namespace Cyberverse.Server.TweakDb.Generated;

public enum Character {
  Judy,
  Panam
}

Maybe we'd also want actual class members instead of an enum, so we can directly grab the string "Character.Panam" or their uint crc32 hash from them.

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

1 participant