Beispiel #1
0
    static int set_NodeData(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            BehaviorDesigner.Runtime.Tasks.Task obj  = (BehaviorDesigner.Runtime.Tasks.Task)o;
            BehaviorDesigner.Runtime.NodeData   arg0 = (BehaviorDesigner.Runtime.NodeData)ToLua.CheckObject <BehaviorDesigner.Runtime.NodeData>(L, 2);
            obj.NodeData = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index NodeData on a nil value"));
        }
    }
Beispiel #2
0
    static int get_NodeData(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            BehaviorDesigner.Runtime.Tasks.Task obj = (BehaviorDesigner.Runtime.Tasks.Task)o;
            BehaviorDesigner.Runtime.NodeData   ret = obj.NodeData;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index NodeData on a nil value"));
        }
    }