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
Using [UseConverter] attribute for properties with type DateTime? causes strange behaviour when GeneratedStore.Generated function is called. Some date data in config file is reset to null, and what data exactly is reset to null is even more strange: only dates with even seconds, so value "2022-03-23T18:33:43.0000000" won't be reset, but "2022-03-23T18:33:44.0000000" will be.
I don't know if it's a BSIPA bug or I use these methods and attributes wrong, or there is some silly environment issue on my side. [UseConverter] for other types (string, int) works fine btw
Using
[UseConverter]
attribute for properties with typeDateTime?
causes strange behaviour whenGeneratedStore.Generated
function is called. Some date data in config file is reset tonull
, and what data exactly is reset tonull
is even more strange: only dates with even seconds, so value"2022-03-23T18:33:43.0000000"
won't be reset, but"2022-03-23T18:33:44.0000000"
will be.I don't know if it's a BSIPA bug or I use these methods and attributes wrong, or there is some silly environment issue on my side.
[UseConverter]
for other types (string
,int
) works fine btwSteps to reproduce:
SimpleStore
SimpleStore.json
inUserData
folder with contentscall
SimpleStore.Instance = Config.GetConfigFor("SimpleStore").Generated<Configuration.SimpleStore>();
inInitWithConfig
build, launch game, don't even have to wait for the main menu to appear
contents of
SimpleStore.json
is nowThe text was updated successfully, but these errors were encountered: