1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.IO;
- using wf;
- namespace MaidStatus
- {
- public class WorkData
- {
- public uint playCount
- {
- get
- {
- return this.playCount_;
- }
- set
- {
- this.playCount_ = (uint)wf.Math.RoundMinMax((long)((ulong)value), 0L, (long)((ulong)-1));
- }
- }
- public void Serialize(BinaryWriter binary)
- {
- binary.Write(this.id);
- binary.Write(this.playCount);
- binary.Write(this.level);
- }
- public void Deserialize(BinaryReader binary, int version)
- {
- this.id = binary.ReadInt32();
- this.playCount = binary.ReadUInt32();
- this.level = binary.ReadInt32();
- }
- public int id;
- public int level;
- private uint playCount_;
- }
- }
|