Class DefaultGameObjectParser

    • Constructor Detail

      • DefaultGameObjectParser

        public DefaultGameObjectParser​(@NotNull
                                       @NotNull GameObjectFactory<GameObject,​MapArchObject,​Archetype> gameObjectFactory,
                                       @NotNull
                                       @NotNull ArchetypeSet<GameObject,​MapArchObject,​Archetype> archetypeSet,
                                       @NotNull
                                       @NotNull ArchetypeTypeSet archetypeTypeSet)
        Creates a new instance.
        Parameters:
        gameObjectFactory - the game object factory for creating new game object instances
        archetypeSet - the archetype set for looking up archetypes
        archetypeTypeSet - the archetype type set for sorting attributes on save
    • Method Detail

      • getModifiedFields

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getModifiedFields​(@NotNull
                                                                                                 @NotNull GameObject gameObject)
        Description copied from interface: GameObjectParser
        Returns the modified fields of a GameObject. These fields are written into map files.
        Parameters:
        gameObject - the game object
        Returns:
        the modified fields in writing order