support for methods in data types
JimmyCushnie opened this issue · comments
You should be able to have methods in data types, at least for getting values, so there's a non-DefaultFileText
way of setting a default value. I.e.:
public interface IData
{
void SetHighscore(int value);
int GetHighscore(int defaultValue = 0);
}
The above example should save and load the data as "Highscore" in the file.