Пример #1
0
        internal static void InvokePlayerSetClassEvent(Player player, ref RoleType type, ref List <ItemType> items)
        {
            var ev = new PlayerSetClassEvent
            {
                Items  = items,
                Player = player,
                Role   = type
            };

            PlayerSetClassEvent?.Invoke(ev);

            items = ev.Items;
            type  = ev.Role;
        }
Пример #2
0
 internal void InvokeSetClassEvent(PlayerSetClassEventArgs ev) => PlayerSetClassEvent?.Invoke(ev);