RoomPreparedData.cs 716 B

123456789101112131415161718192021222324252627282930
  1. using Island.StandardLib.Storage.Local;
  2. namespace Island.StandardLib.Storage
  3. {
  4. public class RoomPreparedData : IStorable
  5. {
  6. public StorPlayerPublic OtherPlayer;
  7. public int AfterClock;
  8. public RoomPreparedData() { }
  9. public RoomPreparedData(StorPlayerPublic other, int afterClock)
  10. {
  11. OtherPlayer = other;
  12. AfterClock = afterClock;
  13. }
  14. public void ReadFromData(DataStorage data)
  15. {
  16. data.Read(out OtherPlayer);
  17. data.Read(out AfterClock);
  18. }
  19. public void WriteToData(DataStorage data)
  20. {
  21. data.Write(OtherPlayer);
  22. data.Write(AfterClock);
  23. }
  24. }
  25. }