Ejemplo n.º 1
0
 public RealmCore()
 {
     Log = new MessageLog();
     Db = new DataAccessObject();
     Setting = SettingModel.Load<RealmSetting>();
     Db.Setup(Setting);
     GManager = new GameManager(this);
     PManager = new PlayerManager(this);
 }
Ejemplo n.º 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;
 }