mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 21:38:01 -05:00
20 lines
432 B
C#
20 lines
432 B
C#
namespace ZoneCodeGenerator.Domain
|
|
{
|
|
class Variable
|
|
{
|
|
public string Name { get; }
|
|
|
|
public int? AlignmentOverride { get; set; }
|
|
|
|
public int Alignment => AlignmentOverride ?? VariableType.Alignment;
|
|
|
|
public TypeDeclaration VariableType { get; }
|
|
|
|
public Variable(string name, TypeDeclaration type)
|
|
{
|
|
Name = name;
|
|
VariableType = type;
|
|
}
|
|
}
|
|
}
|