public void Set(ActionSet actionSet, IWorkshopTree value) { if (Gettable.CanBeSet()) { Gettable.Set(actionSet, value); } }
public virtual void ReturnValue(IWorkshopTree value) { if (!_multiplePaths && _valueWasReturned) { throw new Exception("_multiplePaths is set as false and 2 expressions were returned."); } _valueWasReturned = true; // Multiple return paths. if (_multiplePaths) { _returnStore.Set(_actionSet, value); } // One return path. else { _returningValue = value; } }