Example #1
0
        public FastestLapDriverIdAsStaffId(Mapping.ILookup valueMapping, int id)
        {
            Id = id;
            LocalResourceId = Mapping.FastestLapDriverIdAsStaffId.GetLocalResourceId(Id);

            // Special consideration for mapping specific indices to resource strings
            var nameResourceIdMapping = valueMapping.Name;

            if ((LocalResourceId >= 200) && (LocalResourceId <= 203))
            {
                // Add offset for retired fastest lap drivers (language file index 6530 to 6533)
                nameResourceIdMapping += 535;
            }
            ResourceId = nameResourceIdMapping.BuildResourceId();
        }
 public DriverLoyaltyDriverIdAsStaffId(Mapping.ILookup valueMapping, int id)
 {
     Id = id;
     LocalResourceId = Mapping.DriverLoyaltyDriverIdAsStaffId.GetLocalResourceId(Id);
     ResourceId      = valueMapping.Name.BuildResourceId();
 }
Example #3
0
 public TyreSupplierIdAsSupplierId(Mapping.ILookup valueMapping, int id)
 {
     Id = id;
     LocalResourceId = Mapping.TyreSupplierIdAsSupplierId.GetLocalResourceId(Id);
     ResourceId      = valueMapping.Name.BuildResourceId();
 }
Example #4
0
 public DriverNationality(Mapping.ILookup valueMapping, int id)
 {
     Id = id;
     LocalResourceId = Mapping.DriverNationality.GetLocalResourceId(Id);
     ResourceId      = valueMapping.Name.BuildResourceId();
 }
Example #5
0
 public TrackDesign(Mapping.ILookup valueMapping, int id)
 {
     Id = id;
     LocalResourceId = Mapping.TrackDesign.GetLocalResourceId(Id);
     ResourceId      = valueMapping.Name.BuildResourceId();
 }
Example #6
0
 public FirstGpTrack(Mapping.ILookup valueMapping, int id)
 {
     Id = id;
     LocalResourceId = Mapping.FirstGpTrack.GetLocalResourceId(Id);
     ResourceId      = valueMapping.Name.BuildResourceId();
 }