Example #1
0
        public static List <DataFileFact> GetDataFileFacts()
        {
            var facts = new List <DataFileFact>();

            facts.Add(new DataFileFact(DataFileType.First_Names, "first_names.dat", 60, 50));
            facts.Add(new DataFileFact(DataFileType.Second_Names, "second_names.dat", 60, 50));
            facts.Add(new DataFileFact(DataFileType.Common_Names, "common_names.dat", 60, 50));
            facts.Add(new DataFileFact(DataFileType.Staff, "staff.dat", 110, 0));
            facts.Add(new DataFileFact(DataFileType.Players, "player.dat", 70, 0));
            facts.Add(new DataFileFact(DataFileType.Clubs, "club.dat", 581, 0));
            facts.Add(new DataFileFact(DataFileType.Club_Comps, "club_comp.dat", 107, 0));
            facts.Add(new DataFileFact(DataFileType.Nations, "nation.dat", 290, 0));
            facts.Add(new DataFileFact(DataFileType.General, "general.dat", 3952, 0));

            // HeaderOverride.AdditionalHeaderIndicatorPosition = 0
            // HeaderOverride.InitialNumberOfRecordsPosition = 4
            // HeaderOverride.MinimumHeaderLength = 8
            // HeaderOverride.ExtraHeaderLength = 21
            // HeaderOverride.FurtherNumberOfRecordsPosition = 17
            DataFileHeaderInformation headerInfo = new DataFileHeaderInformation(0, 4, 8, 21, 17);

            facts.Add(new DataFileFact(DataFileType.Contracts, "contract.dat", 80, 0, headerOverload: headerInfo));

            return(facts);
        }
Example #2
0
 public DataFileFact(DataFileType type, string name, int dataSize, int stringLength, DataFileHeaderInformation headerOverload = null)
 {
     Type           = type;
     Name           = name;
     DataSize       = dataSize;
     StringLength   = stringLength;
     HeaderOverload = headerOverload;
 }