예제 #1
0
 public DynValue Evaluate(string propertyName)
 {
     if (!values.ContainsKey(propertyName))
     {
         return(DynValue.Nil);
     }
     else
     {
         return(context.Evaluate(values[propertyName]));
     }
 }
예제 #2
0
    public DynValue Evaluate(string propertyName)
    {
        DynValue function = LuaValue.Table.Get(propertyName);

        if (function == DynValue.Nil)
        {
            return(DynValue.Nil);
        }
        else
        {
            return(context.Evaluate(function));
        }
    }
예제 #3
0
 public DynValue Evaluate()
 {
     return(context.Evaluate(function));
 }