Пример #1
0
        public static void MessageHandler(MinuteFrameworkProtocol.Header header, byte[] msg)
        {
            Connections c = Connections.getInstance();

            switch ((CustomProtocol.TypeNumber)header.typeNumber)
            {
            case CustomProtocol.TypeNumber.ButtonPress:
                if (c.ServerMode)
                {
                    c.EndGame(CustomProtocol.ParseButtonSignalPacket(msg, 0, msg.Length));
                }
                break;
            }
        }
Пример #2
0
 public static void ButtonPressHandler()
 {
     Connections.getInstance().SendToServer(CustomProtocol.MakeButtonSignalPacket(UserInfos.getInstance().myNickname));
 }