コード例 #1
0
    static int GetStaticPublicProperty(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        string arg0 = LuaScriptMgr.GetLuaString(L, 1);
        string arg1 = LuaScriptMgr.GetLuaString(L, 2);
        object o    = PublicExtensions.GetStaticPublicProperty(arg0, arg1);

        LuaScriptMgr.PushVarObject(L, o);
        return(1);
    }
コード例 #2
0
    private static int GetStaticPublicProperty(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        string luaString            = LuaScriptMgr.GetLuaString(L, 1);
        string luaString2           = LuaScriptMgr.GetLuaString(L, 2);
        object staticPublicProperty = PublicExtensions.GetStaticPublicProperty(luaString, luaString2);

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