GameEngine

final class GameEngine[StartUpData, GameModel, ViewModel](fonts: Set[FontInfo], animations: Set[Animation], shaders: Set[Shader], initialise: AssetCollection => Dice => Outcome[Startup[StartUpData]], initialModel: StartUpData => Outcome[GameModel], initialViewModel: StartUpData => GameModel => Outcome[ViewModel], frameProccessor: FrameProcessor[StartUpData, GameModel, ViewModel], initialisationEvents: Batch[GlobalEvent])
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def kill(): Unit
def rebuildGameLoop(parentElement: Element, firstRun: Boolean): AssetCollection => Unit
def start(parentElement: Element, config: GameConfig, configAsync: Future[Option[GameConfig]], assets: Set[AssetType], assetsAsync: Future[Set[AssetType]], bootEvents: Batch[GlobalEvent]): GameEngine[StartUpData, GameModel, ViewModel]