예제 #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;
        }
예제 #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);
        }