Exemplo n.º 1
0
 public static void Write(this BinaryWriter writer, HallOfFameBrowser.HallOfFameFilter filter)
 {
     Log.Detail("writing filter " + filter.GetScene() + ": dead=" + filter.showDead + " - assigned=" + filter.showAssigned + ", available=" + filter.showAvailable + ", undecorated=" + filter.showUndecorated + ", flight=" + filter.showFlightOnly);
     writer.Write((Int64)filter.GetScene());
     writer.Write(filter.showDead);
     writer.Write(filter.showAssigned);
     writer.Write(filter.showAvailable);
     writer.Write(filter.showUndecorated);
     writer.Write(filter.showFlightOnly);
 }
Exemplo n.º 2
0
            private void ReadHallOfFameFilter(BinaryReader reader)
            {
                Log.Detail("reading hall of fame filter from config");
                Int16 cnt = (Int16)reader.ReadInt16();

                for (int i = 0; i < cnt; i++)
                {
                    HallOfFameBrowser.HallOfFameFilter filter = reader.ReadFilter();
                    if (filter != null)
                    {
                        hallOfFameFilter[filter.GetScene()] = filter;
                        Log.Detail("hall of fame display filter loaded: " + filter);
                    }
                }
            }