<< Click to Display Table of Contents >> Navigation: Support > Reconfigurable Rulebook > Definition Types > SCORE FORMAT COLLECTION |
Description
A SCORE FORMAT COLLECTION defines a set of Score Config. Each Score Config consists of one or more Score Format key value pairs where the key is the name of the Score Format and the value is a Score Format string. Each SCORE FORMAT COLLECTION may be used for any number of COURSE OF FIRE scripts during competitions or practice. Each Score Format name included in the SCORE FORMAT COLLECTION may be used in the COURSE OF FIRE script Event or Singular Definition Objects (under ScoreFormat).
A SCORE FORMAT COLLECTION may contain any number of ScoreConfigs, but each ScoreConfig must contain the same number of Score Format key value pairs. The Score Format keys must be the same across all ScoreConfigs.
Definition
The SCORE FORMAT COLLECTION definition includes the Common Properties.
Name |
Value Type |
Description |
ScoreFormats |
List of Score Format names |
The list of Score Format names that must be used as keys in each ScoreConfig
Required |
ScoreConfigs |
List of Score Config |
List of Score Config for use as options. Each Score Config must have a dictionary with keys equal to the values of ScoreFormats Required and may not be an empty list. |
Example
{
"HierarchicalName":"orion:Standard Score Formats",
"Version" : "1.1",
"Type": "SCORE FORMAT COLLECTION",
"Owner" : "OrionAcct000001",
"Discipline" : "RIFLE",
"Description" : "Includes the standard Score Format collections for both integer scoring and decimal scoring used with Rifle and Pistol. ",
//Each ScoreformatSets.Formats need to contain an entry for each FormatName
"ScoreFormats" : ["Events", "AccumulatedFinals", "Shots"],
"ScoreConfigs":[
{
"ScoreConfigName": "Integer",
"ScoreFormats" : {
//Would using the {} format be easier with Python?
"Events" : "{i} - {x}",
"AccumulatedFinals" : "{s}",
"Shots" : "{i}{X}({d})"
}
},
{
"ScoreConfigName": "Decimal",
"ScoreFormats" : {
"Events" : "{d}",
"AccumulatedFinals" : "{d}",
"Shots" : "{d}"
}
}
]
}
Note:
The Reconfigurable Rulebook and functionality will be fully implemented in the 3.0 release of Orion Scoring System. Athena and Rezults both 100% implement the Reconfigurable Rulebook.