コード例 #1
0
    public void ProcessMatchInit(NetworkResponse response)
    {
        ResponseMatchInit args = response as ResponseMatchInit;

        if (args.status == 0)
        {
            GameState.matchID = args.matchID;
            Debug.Log("MatchID set to: " + args.matchID);
        }
    }
コード例 #2
0
    public static NetworkResponse Parse(MemoryStream dataStream)
    {
        ResponseMatchInit response = new ResponseMatchInit();

        response.status = DataReader.ReadShort(dataStream);

        if (response.status == 0)
        {
            response.matchID = DataReader.ReadInt(dataStream);
        }
        return(response);
    }