Struct alternative with inheritance?

data structure that simply holds data, supports inheritance, and can be modified at run time

  1. You can spawn Actors, Add Actor components, Add Elements to Arrays, Maps, Sets at Runtime. Use a Reference to a Parent object to simulate inheritance or copy data from a Parent object.

  2. Another alternative is to store the info a structured text format like JSON and develop encoder/decoder to use the information in the format.

  3. Eliminate the need to support inheritance.