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

        try
        {
            ClientBattle.LogDataActorAttack logDataActorAttack = (ClientBattle.LogDataActorAttack)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, logDataActorAttack.Turn);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #2
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            ClientBattle.LogDataActorAttack logDataActorAttack = (ClientBattle.LogDataActorAttack)LuaObject.checkSelf(l);
            string type;
            LuaObject.checkType(l, 2, out type);
            logDataActorAttack.Type = type;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #4
0
    public static int set_TargetPos(IntPtr l)
    {
        int result;

        try
        {
            ClientBattle.LogDataActorAttack logDataActorAttack = (ClientBattle.LogDataActorAttack)LuaObject.checkSelf(l);
            GridPosition targetPos;
            LuaObject.checkValueType <GridPosition>(l, 2, out targetPos);
            logDataActorAttack.TargetPos = targetPos;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }