예제 #1
0
        private void OnConnected(object sender, EventArgs e)
        {
            UsCmd cmd = new UsCmd();

            cmd.WriteInt16((short)eNetCmd.CL_Handshake);
            cmd.WriteInt16(UsConst.VersionMajor);
            cmd.WriteInt16(UsConst.VersionMinor);
            cmd.WriteInt16(UsConst.VersionPatch);
            _client.SendPacket(cmd);

            _tickTimer.Start();
            _guardTimer.Activate();
        }
예제 #2
0
        public UsCmd CreatePacket()
        {
            UsCmd c = new UsCmd();

            c.WriteNetCmd(eNetCmd.SV_App_Logging);
            c.WriteInt16((short)SeqID);
            c.WriteInt32((int)LogType);
            c.WriteStringStripped(Content, MAX_CONTENT_LEN);
            c.WriteFloat(RealtimeSinceStartup);
            return(c);
        }