5.15. StaticCamera sectionΒΆ

StaticCameraSectionParser is responsible for parsing StaticCamera section. Each line of this section describes a single camera.

Section example:

[StaticCamera]
  38426 65212 35 2

Output example:

{
    'cameras': [
        {
            'belligerent': Belligerents.blue,
            'pos': Point3D(38426.0, 65212.0, 35.0),
        },
    ],
}

Description:

The output of the parser is a dict with a cameras item. It contains a list of dictionaries where each dictionary represents a single camera.

38426

X coordinate.

Output path:pos.x
Output type:float
Output value:original value converted to float number
65212

Y coordinate.

Output path:pos.y
Output type:float
Output value:original value converted to float number
35

Z coordinate.

Output path:pos.z
Output type:float
Output value:original value converted to float number
2

Code number of army the object belongs to.

Output path:belligerent
Output type:complex belligerents constant