Skip to content

Contract Group

Jeremie Rossignol edited this page Apr 15, 2015 · 10 revisions

Table of Contents

The CONTRACT_GROUP node

The CONTRACT_GROUP node provides grouping for multiple Contract Configurator contracts, and allows some common attributes to be set across those groups.

CONTRACT_GROUP
{
    // Name of the contract group
    name = ContractGroup

    // Use this to specify the minimum version of Contract Configurator
    // That is required to run contracts in this group.
    minVersion = 0.7.0

    // The maximum number of times that contracts within this contract
    // group can be completed (0 being unlimited).
    // Default = 0
    maxCompletions = 3

    // The maximum instances of this contract within this contract group
    // that can be active at one time (0 being unlimited).
    // Default = 0
    maxSimultaneous = 1

    // Contract groups may also be nested - all the same attributes can be
    // used in the child groups.  Values like maxCompletions and
    // maxSimultaneous apply to all contracts in the group and all child
    // groups.
    CONTRACT_GROUP
    {
        // Name of the contract group
        name = ChildGroup

        // A child group with fewer completions allowed than the parent.
        maxCompletions = 1
    }
}
Clone this wiki locally