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

Beta enum refactor #123

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

herbertmilhomme
Copy link
Member

Using Enumeration classes instead of enum types
Doing something like that will convert every enum value into an int. Which means no need to convert and any value should can be used to check if valid or not. Which makes adding new pokemons easier to manage in the future
As well as maybe even easier for unity or online server-client relationships... but you miss out on drop-down feature and multiple choice (since any int value can be possible or accepted)
Maybe for pokemon enums the possibility for both a class and enum can exist side by side, instead of one or the other...

Status

  • Ready
  • In development
  • Hold

Description

Testing

Concerns, notes, etc.

i think the rewrite is turning out for the better... after having recent talks with @MyzTyn because the data isnt being loaded dynamically by database, it might be easier on game ram/memory, and also address the whole sqlite issues we were dealing with in previous updates.

Related issues

Related PRs

Converts all Enums to INTs, and
Removes the need for Sqlite DB to access data...

ToDo: Finish transferring Sqlite DB to Static Enum
ToDo: Go through project and remove old enum usage and replace with new implementation...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant