mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
23 lines
567 B
C#
23 lines
567 B
C#
using FSO.SimAntics.Engine;
|
|
|
|
namespace FSO.IDE.EditorComponent.OperandForms.DataProviders
|
|
{
|
|
public abstract class OpTextProvider : OpDataProvider
|
|
{
|
|
public abstract string GetText(EditorScope scope, VMPrimitiveOperand op);
|
|
}
|
|
|
|
public class OpStaticTextProvider : OpTextProvider
|
|
{
|
|
private string Text;
|
|
public OpStaticTextProvider(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
|
|
public override string GetText(EditorScope scope, VMPrimitiveOperand op)
|
|
{
|
|
return Text;
|
|
}
|
|
}
|
|
}
|