Skip to content

Beta enum refactor#123

Open
herbertmilhomme wants to merge 3 commits into
PokemonUnity:devfrom
herbertmilhomme:Beta_Feature_EnumRefactor
Open

Beta enum refactor#123
herbertmilhomme wants to merge 3 commits into
PokemonUnity:devfrom
herbertmilhomme:Beta_Feature_EnumRefactor

Conversation

@herbertmilhomme
Copy link
Copy Markdown
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.

1 participant