예제 #1
0
파일: RealmCore.cs 프로젝트: Knps/Edden
 public RealmCore()
 {
     Log = new MessageLog();
     Db = new DataAccessObject();
     Setting = SettingModel.Load<RealmSetting>();
     Db.Setup(Setting);
     GManager = new GameManager(this);
     PManager = new PlayerManager(this);
 }
예제 #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;
 }
예제 #3
0
파일: Program.cs 프로젝트: Knps/Edden
        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);*/
        }