public void Deserialize(GenReader reader) { int version = reader.ReadInt(); switch (version) { case 0: { int count = reader.ReadInt(); for (int i = 0; i < count; i++) { JailInfo info = new JailInfo(); info.Deserialize(reader); if (info.Character != null) { JailInfo.Add(info); } } if (JailInfo.Count > 0) { CheckTimer.Start(); } } break; } }
public void Deserialize(GenReader reader) { int version = reader.ReadInt(); switch (version) { case 0: { m_Character = reader.ReadCharacter(); Time = reader.ReadTimeSpan(); Date = reader.ReadDateTime(); break; } } }