public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseUpdateResources response = new ResponseUpdateResources();
            response.type = DataReader.ReadShort(dataStream);
            response.amount = DataReader.ReadInt(dataStream);
            response.target = DataReader.ReadInt(dataStream);

            return response;
        }
예제 #2
0
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseUpdateResources response = new ResponseUpdateResources();

            response.type   = DataReader.ReadShort(dataStream);
            response.amount = DataReader.ReadInt(dataStream);
            response.target = DataReader.ReadInt(dataStream);

            return(response);
        }