Beispiel #1
0
        public override IAwaitable TestExecute(IServices services)
        {
            EventEngine engine = ServiceId.Field[services].Engine;

            FieldObject targetObject = engine.GetObject(_objectIndex);

            if (!targetObject.IsActive)
            {
                throw new NotSupportedException($"Unknown expected behavior when trying to call a method of the inactive object (Id: {_objectIndex}).");
            }

            return(targetObject.Scripts.Execute(_scriptId, _priority));
        }