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

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            Mugen.CNSStateDef obj  = (Mugen.CNSStateDef)o;
            Mugen.Cns_Type    arg0 = (Mugen.Cns_Type)ToLua.CheckObject(L, 2, typeof(Mugen.Cns_Type));
            obj.Type = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Type on a nil value"));
        }
    }
예제 #4
0
    static int get_FaceP2(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Mugen.CNSStateDef obj = (Mugen.CNSStateDef)o;
            int ret = obj.FaceP2;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FaceP2 on a nil value"));
        }
    }
예제 #5
0
    static int get_Velset_x(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Mugen.CNSStateDef obj = (Mugen.CNSStateDef)o;
            float             ret = obj.Velset_x;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Velset_x on a nil value"));
        }
    }
예제 #6
0
    static int get_Type(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Mugen.CNSStateDef obj = (Mugen.CNSStateDef)o;
            Mugen.Cns_Type    ret = obj.Type;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Type on a nil value"));
        }
    }
예제 #7
0
    static int _CreateMugen_CNSStateDef(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                Mugen.CNSStateDef obj = new Mugen.CNSStateDef();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Mugen.CNSStateDef.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }