Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }