예제 #1
0
    public static int get_m_soundName(IntPtr l)
    {
        int result;

        try
        {
            OnShowSound onShowSound = (OnShowSound)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, onShowSound.m_soundName);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #2
0
    public static int set_m_soundName(IntPtr l)
    {
        int result;

        try
        {
            OnShowSound onShowSound = (OnShowSound)LuaObject.checkSelf(l);
            string      soundName;
            LuaObject.checkType(l, 2, out soundName);
            onShowSound.m_soundName = soundName;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #3
0
    public static int set_m_clickedTester(IntPtr l)
    {
        int result;

        try
        {
            OnShowSound   onShowSound = (OnShowSound)LuaObject.checkSelf(l);
            ClickedTester clickedTester;
            LuaObject.checkType <ClickedTester>(l, 2, out clickedTester);
            onShowSound.m_clickedTester = clickedTester;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }