示例#1
0
        internal void InvokePlayerJoinEvent(Player player, ref string nickname)
        {
            var ev = new PlayerJoinEventArgs {
                Player = player, Nickname = nickname
            };

            PlayerJoinEvent?.Invoke(ev);
            nickname = ev.Nickname;
        }
示例#2
0
        internal static void InvokePlayerJoinEvent(Player player, ref string nick)
        {
            if (PlayerJoinEvent == null)
            {
                return;
            }
            var ev = new PlayerJoinEvent
            {
                Player = player,
                Nick   = nick
            };

            PlayerJoinEvent.Invoke(ev);

            nick = ev.Nick;
        }
示例#3
0
 public static void InvokePlayerJoinEvent(PlayerJoinEventArgs e)
 {
     PlayerJoinEvent?.Invoke(null, e);
 }