Beispiel #1
0
            public static BorthPos Parse(string content, ref int curIndex)
            {
                BorthPos ret = new BorthPos();

                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineBeginChar, ref curIndex);
                ret.x = GDSParseUtils.ParseInt(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineVariableSeparatorChar, ref curIndex);
                ret.y = GDSParseUtils.ParseInt(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineEndChar, ref curIndex);
                return(ret);
            }
Beispiel #2
0
            public static SkillTargetInfo Parse(string content, ref int curIndex)
            {
                SkillTargetInfo ret = new SkillTargetInfo();

                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineBeginChar, ref curIndex);
                ret.type = GDSParseUtils.ParseShort(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineVariableSeparatorChar, ref curIndex);
                ret.param1 = GDSParseUtils.ParseShort(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineVariableSeparatorChar, ref curIndex);
                ret.param2 = GDSParseUtils.ParseShort(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineVariableSeparatorChar, ref curIndex);
                ret.param3 = GDSParseUtils.ParseShort(content, ref curIndex);
                GDSParseUtils.AssertChar(content, GDSParseUtils.SelfDefineEndChar, ref curIndex);
                return(ret);
            }