store module size in module state

This commit is contained in:
2022-11-24 11:28:19 +01:00
parent c5d264566d
commit 8e9eec978d
3 changed files with 4 additions and 8 deletions

View File

@@ -7,10 +7,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
{
internal PuzzleState PuzzleState => PuzzleState.FromState(State);
internal PuzzleModule(Space space, PuzzleModuleDescription description) : base(space, description)
{
srDimensions.Size = Vector2Int.one; // TODO: larger modules
}
internal PuzzleModule(Space space, PuzzleModuleDescription description) : base(space, description) {}
internal override void InstantiateModule(Transform parent)
{