sampleLightKinds function
The three lights this game's levels use.
Furniture, not vocabulary: a torch is a LightFixtureKind with a flicker
and a size, and both of those are data. They were three subclasses in the
engine until the day the engine stopped being one game's.
Implementation
List<EntityKind> sampleLightKinds() => <EntityKind>[
LightFixtureKind(
SampleEntities.torch,
defaultBehaviour: const FlameFlicker(),
defaultSize: Vector3(0.22, 0.5, 0.22),
),
LightFixtureKind(
SampleEntities.lamp,
defaultBehaviour: const SteadyLight(),
defaultSize: Vector3(0.34, 0.34, 0.34),
),
LightFixtureKind(
SampleEntities.window,
defaultBehaviour: const SteadyLight(),
defaultSize: Vector3(1.4, 2.2, 0.12),
),
];