Ejemplo n.º 1
0
    public static int get_ArmyRandomNumberSeed(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleReportLog.ArmyRandomNumberSeed);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
    public static int get_PlayerName(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleReportLog.PlayerName);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog o = new BattleReportLog();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 4
0
    public static int set_UserId(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            string          userId;
            LuaObject.checkType(l, 2, out userId);
            battleReportLog.UserId = userId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 5
0
    public static int set_CheckSums(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            List <int>      checkSums;
            LuaObject.checkType <List <int> >(l, 2, out checkSums);
            battleReportLog.CheckSums = checkSums;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int set_OpponentCommands(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog      battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            List <BattleCommand> opponentCommands;
            LuaObject.checkType <List <BattleCommand> >(l, 2, out opponentCommands);
            battleReportLog.OpponentCommands = opponentCommands;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 7
0
    public static int set_Players(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog     battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            List <BattlePlayer> players;
            LuaObject.checkType <List <BattlePlayer> >(l, 2, out players);
            battleReportLog.Players = players;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 8
0
    public static int set_MineTeam(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog         battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            List <BattleActorSetup> mineTeam;
            LuaObject.checkType <List <BattleActorSetup> >(l, 2, out mineTeam);
            battleReportLog.MineTeam = mineTeam;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 9
0
    public static int set_RandomNumberSeed(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            int             randomNumberSeed;
            LuaObject.checkType(l, 2, out randomNumberSeed);
            battleReportLog.RandomNumberSeed = randomNumberSeed;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 10
0
    public static int set_Type(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            BattleType      type;
            LuaObject.checkEnum <BattleType>(l, 2, out type);
            battleReportLog.Type = type;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 11
0
    public static int set_PlayerName(IntPtr l)
    {
        int result;

        try
        {
            BattleReportLog battleReportLog = (BattleReportLog)LuaObject.checkSelf(l);
            string          playerName;
            LuaObject.checkType(l, 2, out playerName);
            battleReportLog.PlayerName = playerName;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }