Exemplo n.º 1
0
        public void CallOnRemoveTokenEvent(GenericToken token)
        {
            TokensChangePanel.CreateTokensChangePanel(this, token, isAssigned: false);

            OnTokenIsRemoved?.Invoke(this, token.GetType());
            OnTokenIsRemovedGlobal?.Invoke(this, token.GetType());
        }
Exemplo n.º 2
0
        public void CallOnTokenIsAssigned(GenericToken token, Action callback)
        {
            TokensChangePanel.CreateTokensChangePanel(this, token, isAssigned: true);

            OnTokenIsAssigned?.Invoke(this, token.GetType());
            OnTokenIsAssignedGlobal?.Invoke(this, token);

            Tokens.TokenToAssign = null;

            Triggers.ResolveTriggers(TriggerTypes.OnTokenIsAssigned, callback);
        }