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

ZoneCodeGenerator: Add a preprocessor extracting a member chain to get the name of the asset in the template

This commit is contained in:
Jan
2019-11-21 01:44:04 +01:00
parent 5f0f73838f
commit b0780ca565
4 changed files with 62 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ namespace ZoneCodeGenerator.Domain.Information
public bool IsLeaf { get; set; }
public bool HasNameMember => Type.Members.Any(variable => variable.Name.Equals("name", StringComparison.CurrentCultureIgnoreCase));
public List<MemberInformation> NameChain { get; set; }
public StructureInformation(DataTypeWithMembers type)
{
AssetEnumEntry = null;
@@ -45,6 +45,7 @@ namespace ZoneCodeGenerator.Domain.Information
Usages = new List<StructureInformation>();
OrderedMembers = new List<MemberInformation>();
IsLeaf = true;
NameChain = null;
}
public override string ToString()