2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-06 16:57:25 +00:00

ZoneCodeGenerator: Add arraysize test to explicitly override the size of an array with a dynamic one

This commit is contained in:
Jan
2019-11-10 18:07:28 +01:00
parent 76cae3a948
commit 6ca7f18f9f
4 changed files with 100 additions and 11 deletions

View File

@@ -1,12 +1,17 @@
namespace ZoneCodeGenerator.Domain
using ZoneCodeGenerator.Domain.Evaluation;
namespace ZoneCodeGenerator.Domain
{
class ReferenceTypeArray : ReferenceType
{
public int ArraySize { get; }
public IEvaluation DynamicSize { get; set; }
public ReferenceTypeArray(int arraySize)
{
ArraySize = arraySize;
DynamicSize = null;
}
}
}