Add CloseDoorActionResource and update LogicSequenceComponentResource for activation and deactivation actions

This commit is contained in:
2025-10-30 02:46:16 +01:00
parent 214d541c2b
commit c373ed4953
7 changed files with 36 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ public class TriggerActionFactory
SpawnEntityActionResource spawn => new SpawnEntityAction(spawn.ArchetypeId, spawn.SpawnerWorldId),
DebugMessageActionResource debug => new DebugMessageAction(debug.Message),
OpenDoorActionResource open => new OpenDoorAction(open.TargetWorldId),
CloseDoorActionResource close => new CloseDoorAction(close.TargetWorldId),
_ => throw new ArgumentOutOfRangeException(nameof(resource),
$"TriggerAction type {resource.GetType().Name} not recognized")
};