public class SysObjectNotOnLayerZeroChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements GameObjectValidator<G,A,R>
Constructor and Description |
---|
SysObjectNotOnLayerZeroChecker(@NotNull ValidatorPreferences validatorPreferences)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateGameObject(G gameObject,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validates a game object.
|
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public SysObjectNotOnLayerZeroChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences)
validatorPreferences
- the validator preferences to usepublic void validateGameObject(@NotNull G gameObject, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)
GameObjectValidator
validateGameObject
in interface GameObjectValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to validateerrorCollector
- the error collector to report errors to