Exemple #1
0
 public SessionBuilder()
 {
     this.apiMock       = new Mock <IApi>();
     this.addOns        = new List <AddOn>();
     this.util          = new UiInitUtil();
     this.actor         = new FrameActor(this.util);
     this.frameProvider = new SimulatorFrameProvider(this.util, this.actor);
     this.WithApiMock(new GlobalTable(this.util));
 }
Exemple #2
0
 public Session(Mock <IApi> apiMock, IFrames globalFrames, UiInitUtil util, FrameActor actor, ISimulatorFrameProvider frameProvider, Dictionary <string, Action> addOns, float fps, SavedDataHandler savedDataHandler, IWrapper wrapper, Action <ISession> setActiveSessionAction)
 {
     this.ApiMock                = apiMock;
     this.Frames                 = globalFrames;
     this.FrameProvider          = frameProvider;
     this.addOns                 = addOns;
     this.fps                    = fps;
     this.savedDataHandler       = savedDataHandler;
     this.Util                   = util;
     this.Actor                  = actor;
     this.wrapper                = wrapper;
     this.setActiveSessionAction = setActiveSessionAction;
 }