Пример #1
0
        static void Main(string[] args)
        {
            ServLOG.LogOuts += LLOG_LogOuts;
            ZYNetServer Server = ZYNetServer.GetInstance();

            Server.UserDataInput += Server_UserDataInput;
            Server.Start();

            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Map      = new Bitmap(848, 609);
            gs       = Graphics.FromImage(Map);
            UserList = new List <UserInfo>();
            Server   = ZYNetServer.GetInstance();
            Server.UserConnectAuthority += Server_UserConnectAuthority;
            Server.UserDisconnect       += Server_UserDisconnect;
            Server.UserDataInput        += Server_UserDataInput;
            Server.Start();

            Console.WriteLine("服务器以启动");
            Console.ReadLine();
        }