public override void Update(Task caller) { base.Update(caller); if (variant == "-") { variant = WorldDataVariants.NoVariant; } int locationKey; switch (type) { case "location": WorldDataVariants.SetLocationVariant(regionIndex, locationIndex, variant); break; case "locationnew": WorldDataVariants.SetNewLocationVariant(regionIndex, locationName, variant); break; case "block": locationKey = WorldDataReplacement.MakeLocationKey(regionIndex, locationIndex); WorldDataVariants.SetBlockVariant(blockName, variant, locationKey); break; case "blockAll": WorldDataVariants.SetBlockVariant(blockName, variant); break; case "building": locationKey = WorldDataReplacement.MakeLocationKey(regionIndex, locationIndex); WorldDataVariants.SetBuildingVariant(blockName, recordIndex, variant, locationKey); break; case "buildingAll": WorldDataVariants.SetBuildingVariant(blockName, recordIndex, variant); break; } SetComplete(); }