Exemple #1
0
    static int UnloadTile(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 4);
        SparseTexture obj  = LuaScriptMgr.GetNetObject <SparseTexture>(L, 1);
        int           arg0 = (int)LuaScriptMgr.GetNumber(L, 2);
        int           arg1 = (int)LuaScriptMgr.GetNumber(L, 3);
        int           arg2 = (int)LuaScriptMgr.GetNumber(L, 4);

        obj.UnloadTile(arg0, arg1, arg2);
        return(0);
    }
Exemple #2
0
    public static int UnloadTile(IntPtr l)
    {
        int result;

        try
        {
            SparseTexture sparseTexture = (SparseTexture)LuaObject.checkSelf(l);
            int           tileX;
            LuaObject.checkType(l, 2, out tileX);
            int tileY;
            LuaObject.checkType(l, 3, out tileY);
            int miplevel;
            LuaObject.checkType(l, 4, out miplevel);
            sparseTexture.UnloadTile(tileX, tileY, miplevel);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }