예제 #1
0
    static int set_continuetime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.EffectTime obj  = (WCG.EffectTime)o;
            float          arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.continuetime = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index continuetime on a nil value"));
        }
    }
예제 #2
0
    static int get_continuetime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.EffectTime obj = (WCG.EffectTime)o;
            float          ret = obj.continuetime;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index continuetime on a nil value"));
        }
    }