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

ZoneCodeGenerator: Add postprocessor to inspect whether a structure is a leaf (No complex tasks for loading/writing required, like pointers, strings, scriptstrings)

This commit is contained in:
Jan
2019-11-14 14:53:12 +01:00
parent ef8a040db4
commit f777c049c6
3 changed files with 61 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ namespace ZoneCodeGenerator.Domain.Information
public bool ArrayPointerReferenceExists { get; set; }
public bool ArrayReferenceExists { get; set; }
public bool IsLeaf { get; set; }
public bool HasNameMember => Type.Members.Any(variable => variable.Name.Equals("name", StringComparison.CurrentCultureIgnoreCase));
public StructureInformation(DataTypeWithMembers type)