コード例 #1
0
ファイル: PlayerManager.cs プロジェクト: Knps/Edden
 public PlayerManager(RealmClient rClient)
 {
     RClient = rClient;
     Server = new PlayerServer();
     Server.ClientDisconnected += Server_ClientDisconnected;
     Server.NewClientConntected += Server_NewClientConntected;
     Server.NewDataReceived += Server_NewDataReceived;
     Server.NewDataSended += Server_NewDataSended;
     Server.Started += Server_Started;
     Server.Stoped += Server_Stoped;
     Server.NewException += Server_NewException;
 }
コード例 #2
0
ファイル: GameCore.cs プロジェクト: Knps/Edden
 public GameCore()
 {
     Log = new MessageLog();
     Db = new DataAccessObject();
     Setting = SettingModel.Load<GameSetting>();
     Db.Setup(Setting);
     RClient = new RealmClient(this);
     RClient.NewException += RClient_NewException;
     RClient.Connected += RClient_Connected;
     RClient.Disconnected += RClient_Disconnected;
     RClient.DataReceived += RClient_DataReceived;
     RClient.DataSended += RClient_DataSended;
 }