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); } }
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; }
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; }