예제 #1
0
 public JsonRpcStarter(
     ISpaceEngineers se,
     string hostname = PluginConfig.DEFAULT_HOSTNAME,
     int port        = PluginConfig.DEFAULT_PORT
     )
 {
     m_hostname = hostname;
     m_port     = port;
     m_service  = new AustinJsonRpcSpaceEngineers(se);
     m_service.Bind();
 }
예제 #2
0
 public SynchronizedSpaceEngineers(ISpaceEngineers se, FuncActionDispatcher funcActionDispatcher)
 {
     Character   = new CharacterOnGameLoop(se.Character, se.Observer, funcActionDispatcher);
     Session     = se.Session;
     Items       = new ItemsOnGameLoop(se.Items, funcActionDispatcher);
     Observer    = new ObserverOnGameLoop(se.Observer, funcActionDispatcher);
     Definitions = new DefinitionsOnGameLoop(se.Definitions, funcActionDispatcher);
     Blocks      = new BlocksOnGameLoop(se.Blocks, funcActionDispatcher);
     Admin       = new SynchronizedSpaceEngineersAdmin(new SpaceEngineersAdmin(
                                                           new CharacterAdminOnGameLoop(se.Admin.Character, se.Observer, funcActionDispatcher),
                                                           new BlocksAdminOnGameLoop(se.Admin.Blocks, funcActionDispatcher)
                                                           ), funcActionDispatcher);
 }
예제 #3
0
 public SynchronizedSpaceEngineers(ISpaceEngineers se, MethodCallContext methodCallContext)
 {
     Character = new GameLoopDynamicProxy <ICharacterController>(se.Character, methodCallContext)
                 .ActLike <ICharacterController>();
     Session = new GameLoopDynamicProxy <ISessionController>(se.Session, methodCallContext)
               .ActLike <ISessionController>();
     Items       = new GameLoopDynamicProxy <IItems>(se.Items, methodCallContext).ActLike <IItems>();
     Observer    = new GameLoopDynamicProxy <IObserver>(se.Observer, methodCallContext).ActLike <IObserver>();
     Definitions = new GameLoopDynamicProxy <IDefinitions>(se.Definitions, methodCallContext)
                   .ActLike <IDefinitions>();
     Blocks = new GameLoopDynamicProxy <IBlocks>(se.Blocks, methodCallContext).ActLike <IBlocks>();
     Admin  = new GameLoopDynamicProxy <ISpaceEngineersAdmin>(se.Admin, methodCallContext)
              .ActLike <ISpaceEngineersAdmin>();
     Screens = new GameLoopDynamicProxy <IScreens>(se.Screens, methodCallContext).ActLike <IScreens>();
 }
 public AustinJsonRpcSpaceEngineers(ISpaceEngineers se)
 {
     m_se = se;
 }