An abstract class in Root.Township, the global namespace.
Base for save data types that are also their own savable: applying the data copies it onto the target.
Constructors
| Member | What it is |
|---|
protected BasicSaveData() | Creates a BasicSaveData with default values. |
Fields
1 private and internal field
| Member | What it is |
|---|
private static Logger logger | NLog logger, used when a migration is asked for that this type doesn't provide. |
Properties
| Member | What it is |
|---|
string name { get; } | The data type's name. |
Methods
| Member | What it is |
|---|
override bool Apply(object target, ISerializeChildren childSerializer) | Copies this data onto the target with CopyTo. |
override SaveData Migrate() | No migration: logs an error and returns null. |
protected abstract void CopyTo(TData target) | Copies this data's values onto the target. |