예제 #1
0
 public static void Write(MatchMakerID mmid, Stream s)
 {
     using (var bw = new BinaryWriter(s, Encoding.ASCII, true))
     {
         bw.Write(mmid.ID);
         bw.Write(mmid.BitID);
     }
 }
예제 #2
0
 public static MatchMakerID Read(Stream s)
 {
     MatchMakerID mmid = new MatchMakerID();
     using (var br = new BinaryReader(s, Encoding.ASCII, true))
     {
         mmid.ID = br.ReadInt32();
         mmid.BitID = br.ReadInt64();
     }
     return mmid;
 }
예제 #3
0
 public AppSettings() : this(true)
 {
     for (int i = 0; i < 16; i++)
         AgeRatings[i] = new AgeRating();
     RegionLock = RegionLockFlags.RegionFree;
     MatchMakerID = MatchMakerID.Zero;
     Flags = SettingFlags.None;
     EULA = EulaVersion.Zero;
     Reserved = 0;
     OptimalBannerFrame = 0;
     StreetPassID = 0;
 }