Example #1
0
    static int GetPublicField(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        object arg0 = LuaScriptMgr.GetVarObject(L, 1);
        string arg1 = LuaScriptMgr.GetLuaString(L, 2);
        object o    = PublicExtensions.GetPublicField(arg0, arg1);

        LuaScriptMgr.PushVarObject(L, o);
        return(1);
    }