Example #1
0
    public void Set_Team(byte[] buffer)//팀 관련 메시지를 받았을 때 설정
    {
        sTeam team = new sTeam();

        team        = (sTeam)BytetoStruct(buffer, typeof(sTeam), 256);
        Team_number = team.team;
    }
Example #2
0
    public void Send_TeamMSG()//팀 설정시 보내는 메시지
    {
        sTeam Team = new sTeam();

        Team.flag = (char)eMSG.em_USER_TEAM;
        byte[] data = StructureToByte(Team);
        Send(C_socket, data);
    }