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

        try
        {
            ClientActorHitInfo clientActorHitInfo = (ClientActorHitInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, clientActorHitInfo.m_soldierHp);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #2
0
    public static int get_m_damageNumberType(IntPtr l)
    {
        int result;

        try
        {
            ClientActorHitInfo clientActorHitInfo = (ClientActorHitInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)clientActorHitInfo.m_damageNumberType);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ClientActorHitInfo o = new ClientActorHitInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #4
0
    public static int set_m_heroHp(IntPtr l)
    {
        int result;

        try
        {
            ClientActorHitInfo clientActorHitInfo = (ClientActorHitInfo)LuaObject.checkSelf(l);
            int heroHp;
            LuaObject.checkType(l, 2, out heroHp);
            clientActorHitInfo.m_heroHp = heroHp;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #5
0
    public static int set_m_damageNumberType(IntPtr l)
    {
        int result;

        try
        {
            ClientActorHitInfo clientActorHitInfo = (ClientActorHitInfo)LuaObject.checkSelf(l);
            DamageNumberType   damageNumberType;
            LuaObject.checkEnum <DamageNumberType>(l, 2, out damageNumberType);
            clientActorHitInfo.m_damageNumberType = damageNumberType;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #6
0
    public static int set_m_soldierHpModify(IntPtr l)
    {
        int result;

        try
        {
            ClientActorHitInfo clientActorHitInfo = (ClientActorHitInfo)LuaObject.checkSelf(l);
            int soldierHpModify;
            LuaObject.checkType(l, 2, out soldierHpModify);
            clientActorHitInfo.m_soldierHpModify = soldierHpModify;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }