mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-07 11:41:57 +00:00
ZoneCodeGenerator: Move computed conditions to sub class for MemberInformation since the template engine does not support computations and there will be a decent amount probably. So they are now moved to a different class to not cludder the main class too much
This commit is contained in:
@ -20,16 +20,16 @@ namespace ZoneCodeGenerator.Parsing.CommandFile.PostProcessor
|
||||
|
||||
memberInformation.StructureType.Usages.Add(information);
|
||||
|
||||
if (memberInformation.IsNonEmbeddedReference)
|
||||
if (memberInformation.Computations.IsNonEmbeddedReference)
|
||||
memberInformation.StructureType.NonEmbeddedReferenceExists = true;
|
||||
|
||||
if (memberInformation.IsSinglePointerReference)
|
||||
if (memberInformation.Computations.IsSinglePointerReference)
|
||||
memberInformation.StructureType.SinglePointerReferenceExists = true;
|
||||
|
||||
if (memberInformation.IsArrayPointerReference)
|
||||
if (memberInformation.Computations.IsArrayPointerReference)
|
||||
memberInformation.StructureType.ArrayPointerReferenceExists = true;
|
||||
|
||||
if (memberInformation.IsArrayReference)
|
||||
if (memberInformation.Computations.IsArrayReference)
|
||||
memberInformation.StructureType.ArrayReferenceExists = true;
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile.Tests
|
||||
throw new TestFailedException($"Specified member '{lastMember.Member.Name}' is not char type and therefore cannot be a string.");
|
||||
}
|
||||
|
||||
if (!lastMember.IsSinglePointerReference)
|
||||
if (!lastMember.Computations.IsSinglePointerReference)
|
||||
{
|
||||
throw new TestFailedException($"Specified member '{lastMember.Member.Name}' is a single pointer reference and therefore cannot be a string.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user