1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Island.StandardLib.Math;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Island.StandardLib.Storage.Local
- {
- public class StorPlayer : IStorable
- {
- public int Star;
- public string NickName, Password;
- public void ReadFromData(DataStorage data)
- {
- data.Read(out Star);
- data.Read(out NickName);
- data.Read(out Password);
- }
- public void WriteToData(DataStorage data)
- {
- data.Write(Star);
- data.Write(NickName);
- data.Write(Password);
- }
- public StorPlayerPublic CreatePublic()
- {
- StorPlayerPublic sp = new StorPlayerPublic();
- sp.NickName = NickName;
- sp.Star = Star;
- return sp;
- }
- }
- public class StorPlayerPublic : IStorable
- {
- public int Star;
- public string NickName;
- public void ReadFromData(DataStorage data)
- {
- data.Read(out Star);
- data.Read(out NickName);
- }
- public void WriteToData(DataStorage data)
- {
- data.Write(Star);
- data.Write(NickName);
- }
- }
- }
|