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

ZoneCodeGenerator: Make members have a block they are being loaded into instead of structures

This commit is contained in:
Jan
2019-12-06 16:31:20 +01:00
parent 8a99a49486
commit f4a2639e30
13 changed files with 94 additions and 91 deletions

View File

@@ -13,6 +13,7 @@ namespace ZoneCodeGenerator.Domain.Information
public bool IsScriptString { get; set; }
public bool IsReusable { get; set; }
public IEvaluation Condition { get; set; }
public FastFileBlock Block { get; set; }
public MemberComputations Computations => new MemberComputations(this);
@@ -24,6 +25,7 @@ namespace ZoneCodeGenerator.Domain.Information
IsScriptString = false;
IsReusable = false;
Condition = null;
Block = null;
}
public override string ToString()

View File

@@ -11,7 +11,6 @@ namespace ZoneCodeGenerator.Domain.Information
{
public DataTypeWithMembers Type { get; }
public bool IsUnion => Type is DataTypeUnion;
public FastFileBlock Block { get; set; }
public EnumMember AssetEnumEntry { get; set; }
public bool IsAsset => AssetEnumEntry != null;
@@ -30,6 +29,7 @@ namespace ZoneCodeGenerator.Domain.Information
public bool SinglePointerReferenceExists { get; set; }
public bool ArrayPointerReferenceExists { get; set; }
public bool ArrayReferenceExists { get; set; }
public bool ReferenceFromNonDefaultNormalBlockExists { get; set; }
public bool IsLeaf { get; set; }
@@ -44,6 +44,7 @@ namespace ZoneCodeGenerator.Domain.Information
NonEmbeddedReferenceExists = false;
SinglePointerReferenceExists = false;
ArrayReferenceExists = false;
ReferenceFromNonDefaultNormalBlockExists = false;
Usages = new List<StructureInformation>();
OrderedMembers = new List<MemberInformation>();
IsLeaf = true;