public override void SubscribeHandlers(ModelBase _model) { _model.AddEventHandler(OthelloOutputEvents.Initial, OnInit); _model.AddEventHandler(OthelloOutputEvents.StateChange, OnStateChange); _model.AddEventHandler(OthelloOutputEvents.TokensChange, OnTokensChange); _model.AddEventHandler(OthelloOutputEvents.Ready, OnReady); _model.AddEventHandler(OthelloOutputEvents.Finish, OnFinish); }
public override void SubscribeHandlers(ModelBase _model) { _model.AddEventHandler(RubickCubeOutputEvents.State, OnRubickStateChanged); _model.AddEventHandler(RubickCubeOutputEvents.Resolved, OnRubickResolved); }