mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
21 lines
528 B
C#
21 lines
528 B
C#
namespace ZoneCodeGenerator.Domain
|
|
{
|
|
class Variable
|
|
{
|
|
public string Name { get; }
|
|
|
|
public int? AlignmentOverride { get; set; }
|
|
|
|
public int Alignment => AlignmentOverride ?? VariableType.Alignment;
|
|
public bool ForceAlignment => AlignmentOverride != null || VariableType.ForceAlignment;
|
|
|
|
public TypeDeclaration VariableType { get; }
|
|
|
|
public Variable(string name, TypeDeclaration type)
|
|
{
|
|
Name = name;
|
|
VariableType = type;
|
|
}
|
|
}
|
|
}
|