mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-06 16:57:25 +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:
@@ -1,5 +1,7 @@
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using ZoneCodeGenerator.Domain.Evaluation;
|
||||
using ZoneCodeGenerator.Generating.Computations;
|
||||
|
||||
namespace ZoneCodeGenerator.Domain.Information
|
||||
{
|
||||
@@ -11,20 +13,7 @@ namespace ZoneCodeGenerator.Domain.Information
|
||||
public bool IsScriptString { get; set; }
|
||||
public IEvaluation Condition { get; set; }
|
||||
|
||||
public bool IsNonEmbeddedReference => Member.VariableType.References.Any();
|
||||
|
||||
public bool IsSinglePointerReference => Member.VariableType.References.Any()
|
||||
&& Member.VariableType.References.Last() is ReferenceTypePointer
|
||||
pointerReference
|
||||
&& !pointerReference.IsArray;
|
||||
|
||||
public bool IsArrayPointerReference => Member.VariableType.References.Any()
|
||||
&& Member.VariableType.References.Last() is ReferenceTypePointer
|
||||
pointerReference
|
||||
&& pointerReference.IsArray;
|
||||
|
||||
public bool IsArrayReference => Member.VariableType.References.Any()
|
||||
&& Member.VariableType.References.Last() is ReferenceTypeArray;
|
||||
public MemberComputations Computations => new MemberComputations(this);
|
||||
|
||||
public MemberInformation(Variable member, StructureInformation structureType)
|
||||
{
|
||||
|
Reference in New Issue
Block a user