コード例 #1
0
        internal ConditionOperatorRegistration(BaseConditionOperator conditionOperator, Plugin plugin)
        {
            ConditionOperator = conditionOperator;
            Plugin            = plugin;

            Plugin.Disabled += OnDisabled;
        }
コード例 #2
0
        private void ConditionOperatorStoreOnConditionOperatorAdded(object?sender, ConditionOperatorStoreEvent e)
        {
            BaseConditionOperator conditionOperator = e.Registration.ConditionOperator;

            if (Entity.OperatorPluginGuid == conditionOperator.Plugin !.Guid && Entity.OperatorType == conditionOperator.GetType().Name)
            {
                UpdateOperator(conditionOperator);
            }
        }