Station Configuration
Stations
The configuration element <Stations> defines all the Stations in a session.
The <Stations> element is located in the root element, at top level in the session configuration file.
The <Stations> element can be moved to a separate configuration file, by using session include parameter ConfigIncludeFileStations in the main configuration file.
For more instruction how to use session include, see Session Include.
It is recommended to move the session configuration to a separate file.
<Stations>
<Station> ... </Station>
<Station> ... </Station>
...
<Station> ... </Station>
</Stations>
Station
The configuration element <Station> defines a station and contain a set of basic properties. Beside the basic properties the activated modules can add properties for the Station. See documentation for each module.
A station is defined with the following properties:
<Station
IDName = "Army Post"
NameShort = "Army Post"
NameLong = "Army Post"
Type = "Heltid"
ControledBy = "AutoC3Basic"
Description = ""
DescriptionHTML = ""
Location = "Army Post"
Personnel = ""
Points = "0.0"
Pos = "10,10"
Vehicle = "" >
<Texts> ... </Texts>
<Images> ... </Images>
<StationUI> ... <StationUI>
<ItemObjects> ... </ItemObjects>
<ItemInteractions> ... </ItemInteractions>
<!-- Module specific configuration -->
<Aid> ... </Aid>
<Bomb> ... </Bomb>
<Fuel> ... </Fuel>
<Money> ... </Money>
<Supply> ... </Supply>
<Transport> ... </Transport>
<Water> ... </Water>
</Station>
Main properties
A station is defined with the following main properties.
Parameters |
Description |
Only Used In |
---|---|---|
IDName |
The identification name. Should be unique, and are used in the configuration. Example value: "S1", "Army Post", "Hospital" |
|
NameShort |
A standard short name |
|
NameLong |
The size of the panel. A standard long name |
|
Type |
The stations type, based on Swedish standard. Possible values are "Heltid" and "Deltid". |
C3Rescue |
ControledBy |
How the station in controlled. Possible values are "Player","AutoC3Basic". |
|
Description |
A standard description |
|
DescriptionHTML |
A standard html description |
|
Location |
The position this station is on, defined by a location ID. |
|
Personnel |
The personnel that have their home station in this station is defined here. Value Example = "" |
|
Points |
The number of points this station have. Value Example = "234.5" |
|
Pos |
The position this station is on. |
|
Vehicle |
The vehicles that have their home station in this station is defined here. Value Example = "" |
Template:C3System/Config/Session/Texts Template:C3System/Config/Session/Images
StationUI
The startion UI element defines what UI configuration to use for this startion.
The startion UI is defined with the following properties:
Parameters |
Description |
Only Used In |
---|---|---|
ActivityControlPanelName |
The identification name of the station activity control user interface specification. Example value: "Army Post" |
|
ActivityControlPanelText |
The text displayed at the border of the activity control panel. Exampe values: "PanelText" |
|
MapRealPosImage |
The station image displayed on the map Exampe values: "MapReal" |
|
MapRealPosText |
The text displayed near the station image on the map Exampe values: "MapReal" |
Xml configuration example:
<StationUI
ActivityControlPanelName = "Army Post"
ActivityControlPanelText = "PanelText"
MapRealPosImage = "MapReal"
MapRealPosText = "MapReal" />