You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a base ItemData class and a ToolData class which is derived from ItemData. Making a List<ItemData> in a GameResource for list keeping, when accessing that list later in code all of the items are cast to ItemData, completely breaking the data.
To Reproduce
Make a base GameResource
Make a derived GameResource of the base
Make a list GameResource
Populate the list with both base and derived items
When trying to access the list, most likely after a restart, all items will be cast to the base.
Expected behavior
All gameresources should retain their original type
Media/Files
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a base ItemData class and a ToolData class which is derived from ItemData. Making a
List<ItemData>
in a GameResource for list keeping, when accessing that list later in code all of the items are cast to ItemData, completely breaking the data.To Reproduce
Expected behavior
All gameresources should retain their original type
Media/Files
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: