EngineObject

public protocol EngineObject

Captures an object that is important for a given game engine (and will be involved in automated maping etc). In general only game engine types that map directly to Tiled entities will need to support this

  • The specific game engine the object supports

    Declaration

    Swift

    associatedtype EngineType : Engine
  • verify() Default implementation

    Called once all Factory and Processors have been called creating the object, providing an oppertunity to warn (Engine.warn) or fail (by throwing an Error). A default implementation is provided that does nothing.

    Default Implementation

    Default implementation that does nothing

    Throws

    No errors will be thrown by this default implementation

    Declaration

    Swift

    func verify() throws