Exemplo n.º 1
0
        internal static RunNode RunNode(StyleASTNode command)
        {
            RunNode result = s_RunNodePool.Get();

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

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

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

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

            retn.optionName = optionName;
            retn.value      = value;
            return(retn);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 10
0
        public static UnaryExpressionNode UnaryExpressionNode(StyleASTNodeType nodeType, StyleASTNode expr)
        {
            UnaryExpressionNode unaryNode = s_UnaryNodePool.Get();

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