コード例 #1
0
ファイル: ControllerStageRun.cs プロジェクト: kof1016/Regulus
 public StageRun(Regulus.Game.ICore core,Utility.Command command,int port , Utility.Console.IViewer viewer)
 {
     _View = viewer;
     this._Command = command;
     _ThreadSocketHandler = new ThreadSocketHandler(port, core);
     _ThreadSocket = new System.Threading.Thread(_ThreadSocketHandler.DoWork);
 }
コード例 #2
0
 public PeerHandler(Command command, Utility.Console.IViewer viwer, IPeer peer)
 {
     _SendMachine                   = new StageMachine();
     _ReceiveMachine                = new StageMachine();
     _Viewer                        = viwer;
     _Command                       = command;
     _Id                            = ++_PeerId;
     _Peer                          = peer;
     _CommandSendString             = string.Format("ss{0}", _Id);
     _CommandSendContinousNumber    = string.Format("scn{0}", _Id);
     _CommandReceiveString          = string.Format("rs{0}", _Id);
     _CommandReceiveContinousNumber = string.Format("rcn{0}", _Id);
     _CommandView                   = string.Format("view{0}", _Id);
 }
コード例 #3
0
 public CommandParser(Command command, Utility.Console.IViewer view, IUser user)
 {
     this._Command = command;
     this._View    = view;
     this._User    = user;
 }