Click or drag to resize

StateableModelStateGroups Property

Defines the possible StateGroup for this element.

Namespace:  Livit.Learn.Model
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
public List<StateGroupModel> StateGroups { get; set; }

Property Value

Type: ListStateGroupModel
Remarks

The StateGroups element contains various StateGroup an element can have. Only one State can be active in a StateGroup, but the state from two StateGroup can coexist as part of the same StateGroups element.

A collection of StateGroups will define the different visual states that the element can have. These states can be used to activate certain 3D object animations or trigger actions, such as increasing the element's temperature when an incubator is running, for example.

Examples
In this example, the element can have States Open and Running at the same time, but not Open and Closed simultaneously.
XML
<StateGroups>
    <StateGroup>
    <State Id="Open">
      ...
    </State>
    <State Id="Closed">
      ...
    </State>
  </StateGroup>
  <StateGroup>
    <State Id="Running">
      ...
    </State>
    <State Id="Stopped">
      ...
    </State>
  </StateGroup>
</StateGroups>
See Also