public RealmCore() { Log = new MessageLog(); Db = new DataAccessObject(); Setting = SettingModel.Load<RealmSetting>(); Db.Setup(Setting); GManager = new GameManager(this); PManager = new PlayerManager(this); }
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; }
static void Main(string[] args) { var dao = new DataAccessObject(); dao.Setup("127.0.0.1", "root", "", "edden"); try { dao.InitDb(); } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine(e.InnerException); } // Console.ReadLine(); /*var client = new KnpsClient(); client.DataReceived += client_DataReceived; client.Connect("127.0.0.1", 543); client.Send("je suis jonathan", SendDataType.Utf8);*/ }