a.spritestudio.editor.xml.NodeReader.AtBoolean C# (CSharp) Method

AtBoolean() public method

boolで取得
public AtBoolean ( ) : bool
return bool
        public bool AtBoolean()
        {
            string v = node_.InnerText;
            return IsTrue( v );
        }

Same methods

NodeReader::AtBoolean ( string tag ) : bool

Usage Example

コード例 #1
0
            public Part( NodeReader node )
            {
                name = node.AtText( "name" );
                index = node.AtInteger( "arrayIndex" );
                parent = node.AtInteger( "parentIndex" );
                type = NodeTypeOperator.FromString( node.AtText( "type" ) );
                boundsType = BoundsTypeOperator.FromString( node.AtText( "boundsType" ) );
                inheritType = InheritTypeOperator.FromString( node.AtText( "inheritType" ) );
                //inheritRates
                blendType = AlphaBlendTypeOperator.FromString( node.AtText( "alphaBlendType" ) );
                show = node.AtBoolean( "show" );

                var n = node.ChildOrNull( "expandAttribute" );
                expandAttribute = n != null ? n.AtText() : null;

                n = node.ChildOrNull( "expandChildren" );
                expandChildren = n != null ? n.AtText() : null;
            }
All Usage Examples Of a.spritestudio.editor.xml.NodeReader::AtBoolean