Skip to content

Commit

Permalink
[PlaybackSerialiser] Add base class
Browse files Browse the repository at this point in the history
  • Loading branch information
ScribbleTAS committed Apr 6, 2024
1 parent f304244 commit f8cf266
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.minecrafttas.tasmod.playback;

import java.util.ArrayList;
import java.util.List;

public abstract class PlaybackSerialiserBase {

public PlaybackSerialiserBase(PlaybackControllerClient controller) {
if(controller == null) {
throw new NullPointerException("Parameter controller can't be null");
}


}

public void onSave() {

}

public void onLoad() {

}

public List<String> serialize() {
List<String> out = new ArrayList<>();
return out;
}

public void deserialize(List<String> in) {

}

public List<String> serializeMetadata(){
return null;
}

public void deserializeMetadata(List<String> metadataString) {

}
}

0 comments on commit f8cf266

Please sign in to comment.