Exemplo n.º 1
0
    public static int AddSuccessor(IntPtr l)
    {
        int result;

        try
        {
            WorldPathfinder worldPathfinder = (WorldPathfinder)LuaObject.checkSelf(l);
            WorldPathNode   state;
            LuaObject.checkType <WorldPathNode>(l, 2, out state);
            worldPathfinder.AddSuccessor(state);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }