Exemple #1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        Mugen.Cns_Type o = (Mugen.Cns_Type)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Exemple #2
0
    static int get_StandType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PlayerAttribe  obj = (PlayerAttribe)o;
            Mugen.Cns_Type ret = obj.StandType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index StandType on a nil value"));
        }
    }
Exemple #3
0
    static int set_StandType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PlayerAttribe  obj  = (PlayerAttribe)o;
            Mugen.Cns_Type arg0 = (Mugen.Cns_Type)ToLua.CheckObject(L, 2, typeof(Mugen.Cns_Type));
            obj.StandType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index StandType on a nil value"));
        }
    }
Exemple #4
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"));
        }
    }
Exemple #5
0
 static void Push(IntPtr L, Mugen.Cns_Type arg)
 {
     ToLua.Push(L, arg);
 }