Exemplo n.º 1
0
 public HallOfFameBrowser.HallOfFameFilter GetDisplayFilterForSzene(GameScenes scene)
 {
     HallOfFameBrowser.HallOfFameFilter filter = hallOfFameFilter[scene];
     if (filter != null)
     {
         return(filter);
     }
     hallOfFameFilter[scene] = new HallOfFameBrowser.HallOfFameFilter(scene);
     return(hallOfFameFilter[scene]);
 }
Exemplo n.º 2
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.º 3
0
            public static HallOfFameBrowser.HallOfFameFilter ReadFilter(this BinaryReader reader)
            {
                long       sceneCode = reader.ReadInt64();
                GameScenes scene     = (GameScenes)sceneCode;

                HallOfFameBrowser.HallOfFameFilter filter = new HallOfFameBrowser.HallOfFameFilter(scene);
                filter.showDead        = reader.ReadBoolean();
                filter.showAssigned    = reader.ReadBoolean();
                filter.showAvailable   = reader.ReadBoolean();
                filter.showUndecorated = reader.ReadBoolean();
                filter.showFlightOnly  = reader.ReadBoolean();
                return(filter);
            }
Exemplo n.º 4
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);
                    }
                }
            }
 public HallOfFameBrowser.HallOfFameFilter GetDisplayFilterForSzene(GameScenes scene)
 {
    HallOfFameBrowser.HallOfFameFilter filter = hallOfFameFilter[scene];
    if (filter != null) return filter;
    hallOfFameFilter[scene] = new HallOfFameBrowser.HallOfFameFilter(scene);
    return hallOfFameFilter[scene];
 }