https://metaplay.io logo
Hello guys, I was trying to use an
# general
a
Hello guys, I was trying to use an abstract class as a GameConfigLibrary (see CharacterProgression), but obviously you cannot due to the new() restriction. Is there a way to achieve this? (maybe it makes no sense). I basically want to pattern match this CharacterProgression into its derived classes [GameConfigEntry("CharacterProgression", configBuildSource: nameof(GameConfigBuildParameters.DefaultSource))] [GameConfigEntryTransform(typeof(CharacterProgressionSourceConfigItem))] public GameConfigLibrary CharacterProgression { get; protected set; }
j
Hey, Unfortunately that's not currently supported due to some limitations in the serializer, we do want to support this in the future but it hasn't been prioritized nor been a major issue for any of our customers.
a
Okk thx for answer!