Exemplo n.º 1
0
            public static bool AskWearShirt(PlayerClothing __instance, ushort id, byte quality, byte[] state)
            {
                var cancel = false;

                OnWearShirt?.Invoke(__instance.player, id, quality, state, ref cancel);

                return(!cancel);
            }
            private static bool AskWearShirt(PlayerClothing __instance, ushort id, byte quality, byte[] state)
            {
                bool cancel = false;

                OnWearShirt?.Invoke(__instance.player, id, quality, state, out cancel);

                return !cancel;
            }