Gem.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System.Drawing;
using GemTD.Properties;

namespace GemTD {
    public class Gem {
        static char baseChar = '0';
        char minChar = baseChar;
        char maxChar = (char)(baseChar + GemInfoType.Gem虚无石板);

        public class GemInfo {
            public GemInfoType type;   // 宝石序号
            public string name;        // 宝石名称
            public short level;        // 宝石等级
            public Color color;        // 名字颜色
            public Image image;        // 宝石图片
            public short auraRange;    // 光环范围
            public short attackRange;  // 攻击距离
            public bool passable;      // 是否通行
            public bool show;          // 是否显示
            public char encode;        // 宝石编码

            public GemInfo(GemInfoType type, string name, short level, Image image, short auraRange, short attackRange, bool passable, bool show)
            {
                this.type = type;
                this.name = name;
                this.level = level;
                this.image = image;
                this.auraRange = auraRange;
                this.attackRange = attackRange;
                this.passable = passable;
                this.show = show;
                this.encode = (char)(type + baseChar);

                switch (level) {
                    case 3:
                        color = Color.FromArgb(137, 137, 137);
                        break;
                    case 4:
                        color = Color.FromArgb(137, 137, 255);
                        break;
                    case 5:
                        color = Color.FromArgb(255, 137, 255);
                        break;
                    case 6:
                        color = Color.FromArgb(255, 137, 0);
                        break;
                    default:
                        color = Color.Black;
                        break;
                }
            }
        }
        public enum GemInfoType {
            Gem禁止建造 = 0,
            Gem道路,
            Gem空地,

            /* -----以下展示----- */
            Gem石头,
            Gem白银,
后面还有 133 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。