CapersProject/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/LuaValue/LuaString.cs

35 lines
660 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Language.Lua
{
public class LuaString : LuaValue
{
public LuaString(string text)
{
this.Text = text;
}
public static readonly LuaString Empty = new LuaString(string.Empty);
public string Text { get; set; }
public override object Value
{
get { return this.Text; }
}
public override string GetTypeCode()
{
return "string";
}
public override string ToString()
{
return this.Text;
}
}
}