Exemplo n.º 1
0
        public void ProcessUpdateTime(NetworkResponse response)
        {
            ResponseUpdateTime args = response as ResponseUpdateTime;

            currentTime = (args.day - 1) * Constants.MONTH_DURATION / 30;
            scale       = args.rate;
        }
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseUpdateTime response = new ResponseUpdateTime();
            response.day = DataReader.ReadInt(dataStream);
            response.time = DataReader.ReadInt(dataStream);
            response.rate = DataReader.ReadFloat(dataStream);

            return response;
        }
Exemplo n.º 3
0
        public static NetworkResponse Parse(MemoryStream dataStream)
        {
            ResponseUpdateTime response = new ResponseUpdateTime();

            response.day  = DataReader.ReadInt(dataStream);
            response.time = DataReader.ReadInt(dataStream);
            response.rate = DataReader.ReadFloat(dataStream);

            return(response);
        }