public class DefaultGameObjectParser extends AbstractGameObjectParser<GameObject,MapArchObject,Archetype>
GameObjectParser
for Crossfire game object
instances.Constructor and Description |
---|
DefaultGameObjectParser(@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory,
@NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.util.Map<java.lang.String,java.lang.String> |
getModifiedFields(@NotNull GameObject gameObject)
Returns the modified fields of a
GameObject . |
addModifiedFields, collectTempList, load, load, save
public DefaultGameObjectParser(@NotNull @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
gameObjectFactory
- the game object factory for creating new game
object instancesarchetypeSet
- the archetype set for looking up archetypesarchetypeTypeSet
- the archetype type set for sorting attributes on
save@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getModifiedFields(@NotNull @NotNull GameObject gameObject)
GameObjectParser
GameObject
. These fields are
written into map files.gameObject
- the game object