ProjectDDD/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/LocalFunc.cs

17 lines
391 B (Stored with Git LFS)
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Language.Lua
{
public partial class LocalFunc : Statement
{
public override LuaValue Execute(LuaTable enviroment, out bool isBreak)
{
enviroment.SetNameValue(this.Name, this.Body.Evaluate(enviroment));
isBreak = false;
return null;
}
}
}