Beispiel #1
0
        internal void TriggerRS(IRSRuntimeEntity inEntity, RSTriggerId inTriggerId, RSValue inArgument, bool inbForce)
        {
            if (!inbForce && inEntity.IsLocked())
            {
                return;
            }

            ExecutionScope scope = CreateScope(inEntity, inArgument, 0);

            using (new SharedRef <ExecutionScope>(scope))
            {
                inEntity?.RuleTable?.EvaluateTrigger(inTriggerId, scope);
            }
        }
Beispiel #2
0
 static private void ToggleLocked(this IRSRuntimeEntity inEntity)
 {
     inEntity.SetLocked(!inEntity.IsLocked());
 }
Beispiel #3
0
 static private bool IsLocked(this IRSRuntimeEntity inEntity)
 {
     return(inEntity.IsLocked());
 }