Beispiel #1
0
        internal void InvokeTeamRespawn(ref List <Player> players, ref Respawning.SpawnableTeamType teamType, out bool allow)
        {
            var ev = new TeamRespawnEventArgs
            {
                Players = players,
                Team    = teamType
            };

            TeamRespawnEvent?.Invoke(ev);

            players  = ev.Players;
            teamType = ev.Team;
            allow    = ev.Allow;
        }
Beispiel #2
0
        internal static void InvokeTeamRespawnEvent(ref List <Player> respawnList, ref Respawning.SpawnableTeamType team)
        {
            if (TeamRespawnEvent == null)
            {
                return;
            }

            var ev = new TeamRespawnEvent
            {
                RespawnList = respawnList,
                Team        = team
            };

            TeamRespawnEvent.Invoke(ev);

            team        = ev.Team;
            respawnList = ev.RespawnList;
        }