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; }
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); }