public class GameObjectUtils
extends java.lang.Object
GameObject
related functions.Modifier and Type | Method and Description |
---|---|
static @Nullable java.lang.String |
getSyntaxErrors(@NotNull BaseObject<?,?,?,?> gameObject,
@NotNull ArchetypeType type)
This method checks the objectText for syntax errors.
|
@Nullable public static @Nullable java.lang.String getSyntaxErrors(@NotNull @NotNull BaseObject<?,?,?,?> gameObject, @NotNull @NotNull ArchetypeType type)
ArchetypeTypeSet
)
for this base object. If there is no match, the line is considered wrong.
Of course the type-definitions will never be perfect, this should be kept
in mind.
Note that the archetype is ignored in the check. The default arches should be correct, and even if not - it isn't the map maker to blame.
gameObject
- the game object to checktype
- the type structure belonging to this base object