20 package net.sf.gridarta.model.io;
22 import java.io.BufferedReader;
23 import java.io.IOException;
24 import java.util.Collection;
25 import java.util.List;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
50 G
load(@NotNull BufferedReader reader, @Nullable Collection<G> objects)
throws IOException;
65 G
load(@NotNull BufferedReader reader, @NotNull String firstLine, @Nullable Collection<G> objects)
throws IOException;
73 void save(@NotNull Appendable appendable, @NotNull G gameObject)
throws IOException;
96 void addModifiedFields(@NotNull G gameObject, @NotNull Map<String, String> fields);
G load(@NotNull BufferedReader reader, @Nullable Collection< G > objects)
Parse a game object from a stream.
Interface for classes that read or write GameObject instances.
Map< String, String > getModifiedFields(@NotNull G gameObject)
Returns the modified fields of a GameObject.
void addModifiedFields(@NotNull G gameObject, @NotNull Map< String, String > fields)
Adds the modified fields of a GameObject to a map.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
void collectTempList(@NotNull List< G > objects)
Browse first through the archetype list and attach map arches to it then browse through the face list...
void save(@NotNull Appendable appendable, @NotNull G gameObject)
Write a game object object to a stream.
Interface for MapArchObjects.