Beispiel #1
0
 private void PlayerChangedHandler(object sender, PlayerChangedEventArgs e)
 {
     if (e.Name.Length != 0) // for some reason, sometimes there's events with players without a name
     {
         Console.WriteLine(e.Name + ": " + e.Action);
     }
 }
Beispiel #2
0
 private void PlayerChangedHandler(object sender, PlayerChangedEventArgs e)
 {
     if (!socket.Connected)
     {
         return;
     }
     socket.EmitAsync("player", JsonSerializer.Serialize(e)); //Makes code wait for socket to emit before closing thread.
 }
Beispiel #3
0
        private void PlayerChangedHandler(object sender, PlayerChangedEventArgs e)
        {
            if (ConnectCode == null)
            {
                return;
            }

            var data = new StringContent(JsonSerializer.Serialize(e), Encoding.UTF8, "application/json");

            httpClient.PutAsync("player-state", data);
        }
Beispiel #4
0
 private void UserForm_PlayerChanged(object sender, PlayerChangedEventArgs e)
 {
     if (e.Action == PlayerAction.Died)
     {
         deadMessageQueue.Enqueue(
             $"{PlayerColorToColorOBJ(e.Color).ToTextColorPango(e.Name)}: {e.Action}");
     }
     else
     {
         Settings.conInterface.WriteModuleTextColored("PlayerChange", Color.DarkKhaki,
                                                      $"{PlayerColorToColorOBJ(e.Color).ToTextColorPango(e.Name)}: {e.Action}");
     }
     //Program.conInterface.WriteModuleTextColored("GameMemReader", Color.Green, e.Name + ": " + e.Action);
 }
Beispiel #5
0
 private void UserForm_PlayerChanged(object sender, PlayerChangedEventArgs e)
 {
     WriteLineToConsole(e.Name + ": " + e.Action);
 }
Beispiel #6
0
 private void UserForm_PlayerChanged(object sender, PlayerChangedEventArgs e)
 {
     Program.conInterface.WriteTextFormatted($"[§6PlayerChange§f] {PlayerColorToColorCode(e.Color)}{e.Name}§f: §f{e.Action}§f");
     //Program.conInterface.WriteModuleTextColored("GameMemReader", Color.Green, e.Name + ": " + e.Action);
 }
Beispiel #7
0
 private void UserForm_PlayerChanged(object sender, PlayerChangedEventArgs e)
 {
     Settings.conInterface.WriteModuleTextColored("PlayerChange", Color.DarkKhaki, $"{PlayerColorToColorOBJ(e.Color).ToTextColor()}{e.Name}{NormalTextColor.ToTextColor()}: {e.Action}");
     //Program.conInterface.WriteModuleTextColored("GameMemReader", Color.Green, e.Name + ": " + e.Action);
 }
Beispiel #8
0
 private void PlayerChangedHandler(object sender, PlayerChangedEventArgs e)
 {
     socket.EmitAsync("player", JsonSerializer.Serialize(e));
 }
Beispiel #9
0
 private void PlayerChangedHandler(object?sender, PlayerChangedEventArgs e)
 {
     Send(JsonConvert.SerializeObject(new WebsocketEvent(EventName.player, e)));
 }