⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectelement.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Utils.TagParser
{
    using System;

    public class ObjectElement : TagElement
    {
        public ObjectElement(string name) : base(name)
        {
        }

        public string Data
        {
            get
            {
                return base.GetAttributeString("data", "");
            }
        }

        public int Height
        {
            get
            {
                return base.GetAttributeInt("height", -1);
            }
        }

        public string Title
        {
            get
            {
                return base.GetAttributeString("title", "");
            }
        }

        public ObjectType Type
        {
            get
            {
                switch (base.GetAttributeString("type", ""))
                {
                    case "E":
                    case "Emotion":
                        return ObjectType.Emotion;

                    case "CE":
                    case "CustomizedEmotion":
                        return ObjectType.CustomizedEmotion;

                    case "Image":
                        return ObjectType.Image;
                }
                return ObjectType.Other;
            }
        }

        public int Width
        {
            get
            {
                return base.GetAttributeInt("width", -1);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -