Some more work on models
This commit is contained in:
parent
91deb3fc20
commit
393730a2b2
1 changed files with 38 additions and 8 deletions
|
@ -27,6 +27,9 @@ class Fixture:
|
|||
id: str
|
||||
"""Unique identifier for fixture."""
|
||||
|
||||
name: str
|
||||
"""Human readable name."""
|
||||
|
||||
capabilities: Capabilities
|
||||
"""Which dynamic capabilities does the fixture have."""
|
||||
|
||||
|
@ -49,8 +52,35 @@ class Space:
|
|||
id: str
|
||||
"""Unique identifier for space."""
|
||||
|
||||
name: str
|
||||
"""Human readable name."""
|
||||
|
||||
fixtures: list[Fixture]
|
||||
"""All fixtures present in the space."""
|
||||
|
||||
center: SpaceVector
|
||||
"""A reference point in the space from which the audience perspective might be assumed."""
|
||||
|
||||
|
||||
@dataclass
|
||||
class Sequence:
|
||||
"""A sequence of light events described over fixtures."""
|
||||
|
||||
id: str
|
||||
"""A unique identifier for this sequence."""
|
||||
|
||||
name: str
|
||||
"""Human readable name."""
|
||||
|
||||
|
||||
|
||||
|
||||
@dataclass
|
||||
class Event:
|
||||
"""A collection of sequences and spaces."""
|
||||
|
||||
spaces: list[Space]
|
||||
"""A collection of spaces."""
|
||||
|
||||
sequences: list[Sequence]
|
||||
"""A collection of sequences."""
|
||||
|
|
Loading…
Reference in a new issue