mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Allow arbitrarily setting a Tracker
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@ public abstract class TrackableObject implements IIdentifiable, Serializable {
|
||||
private static final long serialVersionUID = 7386836745378571056L;
|
||||
|
||||
private final int id;
|
||||
protected final transient Tracker tracker;
|
||||
protected transient Tracker tracker;
|
||||
private final Map<TrackableProperty, Object> props;
|
||||
private final Set<TrackableProperty> changedProps;
|
||||
private boolean copyingProps;
|
||||
@@ -30,6 +30,11 @@ public abstract class TrackableObject implements IIdentifiable, Serializable {
|
||||
return id;
|
||||
}
|
||||
|
||||
// needed for multiplayer support
|
||||
public void setTracker(Tracker tracker) {
|
||||
this.tracker = tracker;
|
||||
}
|
||||
|
||||
public final Tracker getTracker() {
|
||||
return tracker;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user