= Updated core documentation quickly

This commit is contained in:
Matthew Cech
2019-03-30 14:26:21 -07:00
parent a01c952d25
commit 3c5f168628
9 changed files with 27 additions and 32 deletions
+4 -4
View File
@@ -1,5 +1,7 @@
package core;
// Objects inheriting from this are capable of being stored in and
// have their data populated from database entries.
public abstract class DatabaseTrackedObject
{
private boolean isDirty;
@@ -26,10 +28,8 @@ public abstract class DatabaseTrackedObject
isDirty = false;
}
// TODO(wisp): Not the best way to handle this, potentially consider
// using an object factory that looks up how to serialize and
// deserialize based on the type of the thing being tracked.
// For now, this is fine.
// Consider an object factory instead of dedicated serialization methods
// if this starts to become impractical. For now, it works.
public abstract String Serialize();
public abstract void DeSerialzie(String string);
}