Example #1
0
        internal static RunNode RunNode(StyleASTNode command)
        {
            RunNode result = s_RunNodePool.Get();

            result.command = command;
            return(result);
        }
Example #2
0
        internal static ParenNode ParenNode(StyleASTNode expression)
        {
            ParenNode parenNode = s_ParenPool.Get();

            parenNode.expression = expression;
            return(parenNode);
        }
Example #3
0
        internal static UrlNode UrlNode(StyleASTNode url, StyleASTNode spriteName)
        {
            UrlNode retn = s_UrlNodePool.Get();

            retn.url        = url;
            retn.spriteName = spriteName;
            return(retn);
        }
Example #4
0
        internal static ConstNode ConstNode(string name, StyleASTNode value)
        {
            ConstNode constNode = s_ConstNodePool.Get();

            constNode.constName = name;
            constNode.value     = value;
            return(constNode);
        }
Example #5
0
        internal static AnimationOptionNode AnimationOptionNode(string optionName, StyleASTNode value)
        {
            AnimationOptionNode retn = s_AnimationOptionNodePool.Get();

            retn.optionName = optionName;
            retn.value      = value;
            return(retn);
        }
Example #6
0
        internal static RgbNode RgbNode(StyleASTNode red, StyleASTNode green, StyleASTNode blue)
        {
            RgbNode retn = s_RgbNodePool.Get();

            retn.red   = red;
            retn.green = green;
            retn.blue  = blue;
            return(retn);
        }
Example #7
0
        internal static SoundCommandNode SoundCommandNode(StyleASTNode name, RunCommandType cmdType, RunAction runAction)
        {
            SoundCommandNode soundCommandNode = s_SoundCommandNodePool.Get();

            soundCommandNode.name      = name;
            soundCommandNode.cmdType   = cmdType;
            soundCommandNode.runAction = runAction;
            return(soundCommandNode);
        }
Example #8
0
        internal static SoundPropertyNode SoundPropertyNode(string name, StyleASTNode value)
        {
            SoundPropertyNode retn = s_SoundPropertyNodePool.Get();

            retn.name  = name;
            retn.value = value;
            retn.type  = StyleASTNodeType.Property;
            return(retn);
        }
Example #9
0
        internal static AnimationCommandNode AnimationCommandNode(StyleASTNode animationName, RunCommandType cmdType, RunAction runAction)
        {
            AnimationCommandNode animationCommandNode = s_AnimationCommandNodePool.Get();

            animationCommandNode.animationName = animationName;
            animationCommandNode.cmdType       = cmdType;
            animationCommandNode.runAction     = runAction;
            return(animationCommandNode);
        }
Example #10
0
        public static UnaryExpressionNode UnaryExpressionNode(StyleASTNodeType nodeType, StyleASTNode expr)
        {
            UnaryExpressionNode unaryNode = s_UnaryNodePool.Get();

            unaryNode.type       = nodeType;
            unaryNode.expression = expr;
            return(unaryNode);
        }
Example #11
0
 public void AddChildNode(StyleASTNode child)
 {
     children.Add(child);
 }