Esempio n. 1
0
        static void Main(string[] args)
        {
            using (LilaClient client = new LilaClient())
            {
                client.Events.OnNewHook += OnNewHook;

                //Login as anonymous
                client.Login();

                Console.WriteLine("Ready.");
                Console.ReadKey();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TournamentEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="tournament">The tournament.</param>
 public TournamentEvent(LilaClient client, LilaTournament tournament) : base(client)
 {
     Tournament = tournament;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinGameEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="game">The game.</param>
 public JoinGameEvent(LilaClient client, LilaGame game) : base(client)
 {
     Game = game;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LatencyEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="latency">The latency.</param>
 public LatencyEvent(LilaClient client, int latency) : base(client)
 {
     Latency = latency;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DisconnectEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 public DisconnectEvent(LilaClient client) : base(client)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChallengesEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="challenges">The challenges.</param>
 public ChallengesEvent(LilaClient client, ChallengesData challenges) : base(client)
 {
     Challenges = challenges;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TournamentsEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="tournaments">The tournaments.</param>
 public TournamentsEvent(LilaClient client, List <TournamentHtmlEntry> tournaments) : base(client)
 {
     Tournaments = tournaments;
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LilaGameMoveEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="game">The game.</param>
 /// <param name="move">The move.</param>
 public LilaGameMoveEvent(LilaClient client, LilaGame game, MoveData move) : base(client, game)
 {
     Move = move;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LilaEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 public LilaEvent(LilaClient client)
 {
     Client = client;
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HookEvent"/> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="hook">The hook.</param>
 public HookEvent(LilaClient client, IHook hook) : base(client)
 {
     Hook = hook;
 }