mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 22:08:29 -05:00
30 lines
564 B
C#
30 lines
564 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ZoneCodeGenerator.Domain.Evaluation
|
|
{
|
|
class OperandStatic : IEvaluation
|
|
{
|
|
public int Value { get; }
|
|
|
|
public bool IsStatic => true;
|
|
public int EvaluateNumeric()
|
|
{
|
|
return Value;
|
|
}
|
|
|
|
public OperandStatic(int value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Value.ToString();
|
|
}
|
|
}
|
|
}
|