コード例 #1
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);
 }
コード例 #2
0
 public SynchronizedSpaceEngineersAdmin(ISpaceEngineersAdmin admin, FuncActionDispatcher funcActionDispatcher) :
     base(funcActionDispatcher)
 {
     Admin = admin;
 }