From f8cf2665deb373908c47fe1f8ba6de3b8a154145 Mon Sep 17 00:00:00 2001 From: Scribble Date: Sat, 6 Apr 2024 19:37:59 +0200 Subject: [PATCH] [PlaybackSerialiser] Add base class --- .../playback/PlaybackSerialiserBase.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/main/java/com/minecrafttas/tasmod/playback/PlaybackSerialiserBase.java diff --git a/src/main/java/com/minecrafttas/tasmod/playback/PlaybackSerialiserBase.java b/src/main/java/com/minecrafttas/tasmod/playback/PlaybackSerialiserBase.java new file mode 100644 index 00000000..a76bf88e --- /dev/null +++ b/src/main/java/com/minecrafttas/tasmod/playback/PlaybackSerialiserBase.java @@ -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 serialize() { + List out = new ArrayList<>(); + return out; + } + + public void deserialize(List in) { + + } + + public List serializeMetadata(){ + return null; + } + + public void deserializeMetadata(List metadataString) { + + } +}