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;
        }
Esempio n. 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);
        }