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

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

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

        try
        {
            BattleRoomBattleLog battleRoomBattleLog = (BattleRoomBattleLog)LuaObject.checkSelf(l);
            ulong roomId;
            LuaObject.checkType(l, 2, out roomId);
            battleRoomBattleLog.RoomId = roomId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 4
0
    public static int set_Players(IntPtr l)
    {
        int result;

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

        try
        {
            BattleRoomBattleLog     battleRoomBattleLog = (BattleRoomBattleLog)LuaObject.checkSelf(l);
            List <BattleActorSetup> team;
            LuaObject.checkType <List <BattleActorSetup> >(l, 2, out team);
            battleRoomBattleLog.Team1 = team;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int set_ArmyRandomNumberSeed(IntPtr l)
    {
        int result;

        try
        {
            BattleRoomBattleLog battleRoomBattleLog = (BattleRoomBattleLog)LuaObject.checkSelf(l);
            int armyRandomNumberSeed;
            LuaObject.checkType(l, 2, out armyRandomNumberSeed);
            battleRoomBattleLog.ArmyRandomNumberSeed = armyRandomNumberSeed;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }