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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user