コード例 #1
0
 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);
 }
コード例 #2
0
 public override void SubscribeHandlers(ModelBase _model)
 {
     _model.AddEventHandler(RubickCubeOutputEvents.State, OnRubickStateChanged);
     _model.AddEventHandler(RubickCubeOutputEvents.Resolved, OnRubickResolved);
 }