/// <summary>
        /// Initializes a new instance of the <see cref="UvssPlaySfxTriggerActionSyntax"/> class.
        /// </summary>
        internal UvssPlaySfxTriggerActionSyntax(
            SyntaxToken playSfxKeyword,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.PlaySfxTriggerAction)
        {
            this.PlaySfxKeyword = playSfxKeyword;
            ChangeParent(playSfxKeyword);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 2;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssCultureDirectiveSyntax"/> class.
        /// </summary>
        internal UvssCultureDirectiveSyntax(
            SyntaxToken directiveToken,
            UvssPropertyValueWithBracesSyntax cultureValue)
            : base(SyntaxKind.CultureDirective)
        {
            this.DirectiveToken = directiveToken;
            ChangeParent(directiveToken);

            this.CultureValue = cultureValue;
            ChangeParent(cultureValue);

            SlotCount = 2;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPropertyTriggerConditionSyntax"/> class.
        /// </summary>
        internal UvssPropertyTriggerConditionSyntax(
            UvssPropertyNameSyntax propertyName,
            SyntaxToken comparisonOperatorToken,
            UvssPropertyValueWithBracesSyntax propertyValue)
            : base(SyntaxKind.PropertyTriggerCondition)
        {
            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.ComparisonOperatorToken = comparisonOperatorToken;
            ChangeParent(comparisonOperatorToken);

            this.PropertyValue = propertyValue;
            ChangeParent(propertyValue);

            SlotCount = 3;
            UpdateIsMissing();
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPlayStoryboardTriggerActionSyntax"/> class.
        /// </summary>
        internal UvssPlayStoryboardTriggerActionSyntax(
            SyntaxToken playStoryboardKeyword,
            UvssSelectorWithParenthesesSyntax selector,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.PlayStoryboardTriggerAction)
        {
            this.PlayStoryboardKeyword = playStoryboardKeyword;
            ChangeParent(playStoryboardKeyword);

            this.Selector = selector;
            ChangeParent(selector);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 3;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSetTriggerActionSyntax"/> class.
        /// </summary>
        internal UvssSetTriggerActionSyntax(
            SyntaxToken setKeyword,
            UvssPropertyNameSyntax propertyName,
            UvssSelectorWithParenthesesSyntax selector,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.SetTriggerAction)
        {
            this.SetKeyword = setKeyword;
            ChangeParent(setKeyword);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.Selector = selector;
            ChangeParent(selector);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 4;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssAnimationKeyframeSyntax"/> class.
        /// </summary>
        internal UvssAnimationKeyframeSyntax(
            SyntaxToken keyframeKeyword,
            SyntaxToken timeToken,
            UvssIdentifierBaseSyntax easingIdentifier,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.AnimationKeyframe)
        {
            this.KeyframeKeyword = keyframeKeyword;
            ChangeParent(keyframeKeyword);

            this.TimeToken = timeToken;
            ChangeParent(timeToken);

            this.EasingIdentifier = easingIdentifier;
            ChangeParent(easingIdentifier);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 4;
            UpdateIsMissing();
        }