Skip to main content

BasicSaveData<TData>

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​

MemberWhat it is
protected BasicSaveData()Creates a BasicSaveData with default values.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger, used when a migration is asked for that this type doesn't provide.

Properties​

MemberWhat it is
string name { get; }The data type's name.

Methods​

MemberWhat 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.