Exemple #1
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("CastRequest{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            if (HasTargetId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("targetId = ");
                sb.Append(targetId);
            }
            if (HasAbilityId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("abilityId = ");
                sb.Append(abilityId);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #2
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("CreateDungeon{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasDungeonTmpl())
            {
                sb.Append(",\r\n").Append(curIndent).Append("dungeonTmpl = ");
                sb.Append(dungeonTmpl);
            }
            if (HasDifficulty())
            {
                sb.Append(",\r\n").Append(curIndent).Append("difficulty = ");
                sb.Append(difficulty);
            }
            if (HasDungeonLevel())
            {
                sb.Append(",\r\n").Append(curIndent).Append("dungeonLevel = ");
                sb.Append(dungeonLevel);
            }
            if (HasOthers())
            {
                sb.Append(",\r\n").Append(curIndent).Append("others = ");
                sb.Append(others);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #3
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("BattleSnap{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasType())
            {
                sb.Append(",\r\n").Append(curIndent).Append("type = ");
                sb.Append(type);
            }
            if (HasUuid())
            {
                sb.Append(",\r\n").Append(curIndent).Append("uuid = ");
                sb.Append(uuid);
            }
            if (HasUnits())
            {
                sb.Append(",\r\n").Append(curIndent).Append("units = ");
                sb.Append(units == null ? "null" : units.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #4
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("Healing{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            if (HasBaseValue())
            {
                sb.Append(",\r\n").Append(curIndent).Append("baseValue = ");
                sb.Append(baseValue);
            }
            if (HasValue())
            {
                sb.Append(",\r\n").Append(curIndent).Append("value = ");
                sb.Append(value);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #5
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("RemoveUnit{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #6
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("AddUnit{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasData())
            {
                sb.Append(",\r\n").Append(curIndent).Append("data = ");
                sb.Append(data == null ? "null" : data.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #7
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("BattleSync{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasActions())
            {
                sb.Append(",\r\n").Append(curIndent).Append("actions = ");
                sb.Append(actions == null ? "null" : actions.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #8
0
        public override string ToString()
        {
            var sb = StringBuilderCache.Acquire();

            if (token == DDToken.ft_object)
            {
                sb.Append(objTmpl);
            }
            else
            {
                sb.Append(token);
            }
            if (isArray)
            {
                sb.Append("[]");
            }
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #9
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("Damage{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            if (HasBaseValue())
            {
                sb.Append(",\r\n").Append(curIndent).Append("baseValue = ");
                sb.Append(baseValue);
            }
            if (HasValue())
            {
                sb.Append(",\r\n").Append(curIndent).Append("value = ");
                sb.Append(value);
            }
            if (HasDamageType())
            {
                sb.Append(",\r\n").Append(curIndent).Append("damageType = ");
                sb.Append(damageType);
            }
            if (HasDamageFlag())
            {
                sb.Append(",\r\n").Append(curIndent).Append("damageFlag = ");
                sb.Append(damageFlag);
            }
            if (HasKilledParam())
            {
                sb.Append(",\r\n").Append(curIndent).Append("killedParam = ");
                sb.Append(killedParam);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #10
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("MoveRequest{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            if (HasType())
            {
                sb.Append(",\r\n").Append(curIndent).Append("type = ");
                sb.Append(type);
            }
            if (HasX())
            {
                sb.Append(",\r\n").Append(curIndent).Append("x = ");
                sb.Append(x);
            }
            if (HasY())
            {
                sb.Append(",\r\n").Append(curIndent).Append("y = ");
                sb.Append(y);
            }
            if (HasZ())
            {
                sb.Append(",\r\n").Append(curIndent).Append("z = ");
                sb.Append(z);
            }
            if (HasFaceTo())
            {
                sb.Append(",\r\n").Append(curIndent).Append("faceTo = ");
                sb.Append(faceTo);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #11
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("AbilityData{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasTmplId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("tmplId = ");
                sb.Append(tmplId);
            }
            if (HasLev())
            {
                sb.Append(",\r\n").Append(curIndent).Append("lev = ");
                sb.Append(lev);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #12
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("BattleCreateInfo{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasSceneMap())
            {
                sb.Append(",\r\n").Append(curIndent).Append("sceneMap = ");
                sb.Append(sceneMap);
            }
            if (HasUnits())
            {
                sb.Append(",\r\n").Append(curIndent).Append("units = ");
                sb.Append(units == null ? "null" : units.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #13
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("UnitCreateData{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasInfo())
            {
                sb.Append(",\r\n").Append(curIndent).Append("info = ");
                sb.Append(info == null ? "null" : info.ToFormatString(curIndent));
            }
            if (HasProp())
            {
                sb.Append(",\r\n").Append(curIndent).Append("prop = ");
                sb.Append(prop == null ? "null" : prop.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #14
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("UnitExtProp{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasKey())
            {
                sb.Append(",\r\n").Append(curIndent).Append("key = ");
                sb.Append(key);
            }
            if (HasValue())
            {
                sb.Append(",\r\n").Append(curIndent).Append("value = ");
                sb.Append(value);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #15
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("UnitInfo{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasPlayerId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("playerId = ");
                sb.Append(playerId);
            }
            if (HasUid())
            {
                sb.Append(",\r\n").Append(curIndent).Append("uid = ");
                sb.Append(uid);
            }
            if (HasName())
            {
                sb.Append(",\r\n").Append(curIndent).Append("name = ");
                sb.Append(name);
            }
            if (HasAppearance())
            {
                sb.Append(",\r\n").Append(curIndent).Append("appearance = ");
                sb.Append(appearance);
            }
            if (HasCategory())
            {
                sb.Append(",\r\n").Append(curIndent).Append("category = ");
                sb.Append(category);
            }
            if (HasType())
            {
                sb.Append(",\r\n").Append(curIndent).Append("type = ");
                sb.Append(type);
            }
            if (HasCamp())
            {
                sb.Append(",\r\n").Append(curIndent).Append("camp = ");
                sb.Append(camp);
            }
            if (HasLev())
            {
                sb.Append(",\r\n").Append(curIndent).Append("lev = ");
                sb.Append(lev);
            }
            if (HasX())
            {
                sb.Append(",\r\n").Append(curIndent).Append("x = ");
                sb.Append(x);
            }
            if (HasY())
            {
                sb.Append(",\r\n").Append(curIndent).Append("y = ");
                sb.Append(y);
            }
            if (HasZ())
            {
                sb.Append(",\r\n").Append(curIndent).Append("z = ");
                sb.Append(z);
            }
            if (HasFaceTo())
            {
                sb.Append(",\r\n").Append(curIndent).Append("faceTo = ");
                sb.Append(faceTo);
            }
            if (HasHpPercent())
            {
                sb.Append(",\r\n").Append(curIndent).Append("hpPercent = ");
                sb.Append(hpPercent);
            }
            if (HasMpPercent())
            {
                sb.Append(",\r\n").Append(curIndent).Append("mpPercent = ");
                sb.Append(mpPercent);
            }
            if (HasMoveSpeed())
            {
                sb.Append(",\r\n").Append(curIndent).Append("moveSpeed = ");
                sb.Append(moveSpeed);
            }
            if (HasActionState())
            {
                sb.Append(",\r\n").Append(curIndent).Append("actionState = ");
                sb.Append(actionState);
            }
            if (HasCurrentAnim())
            {
                sb.Append(",\r\n").Append(curIndent).Append("currentAnim = ");
                sb.Append(currentAnim);
            }
            if (HasEffectShow())
            {
                sb.Append(",\r\n").Append(curIndent).Append("effectShow = ");
                sb.Append(effectShow);
            }
            if (HasControlFlag())
            {
                sb.Append(",\r\n").Append(curIndent).Append("controlFlag = ");
                sb.Append(controlFlag);
            }
            if (HasBuffsData())
            {
                sb.Append(",\r\n").Append(curIndent).Append("buffsData = ");
                sb.Append(buffsData == null ? "null" : buffsData.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #16
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("UnitSync{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasUnitId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("unitId = ");
                sb.Append(unitId);
            }
            if (HasFaceTo())
            {
                sb.Append(",\r\n").Append(curIndent).Append("faceTo = ");
                sb.Append(faceTo);
            }
            if (HasX())
            {
                sb.Append(",\r\n").Append(curIndent).Append("x = ");
                sb.Append(x);
            }
            if (HasY())
            {
                sb.Append(",\r\n").Append(curIndent).Append("y = ");
                sb.Append(y);
            }
            if (HasZ())
            {
                sb.Append(",\r\n").Append(curIndent).Append("z = ");
                sb.Append(z);
            }
            if (HasHpPercent())
            {
                sb.Append(",\r\n").Append(curIndent).Append("hpPercent = ");
                sb.Append(hpPercent);
            }
            if (HasMpPercent())
            {
                sb.Append(",\r\n").Append(curIndent).Append("mpPercent = ");
                sb.Append(mpPercent);
            }
            if (HasActionState())
            {
                sb.Append(",\r\n").Append(curIndent).Append("actionState = ");
                sb.Append(actionState);
            }
            if (HasAnimPlayCode())
            {
                sb.Append(",\r\n").Append(curIndent).Append("AnimPlayCode = ");
                sb.Append(AnimPlayCode);
            }
            if (HasAnimPlayTime())
            {
                sb.Append(",\r\n").Append(curIndent).Append("AnimPlayTime = ");
                sb.Append(AnimPlayTime);
            }
            if (HasEffectShow())
            {
                sb.Append(",\r\n").Append(curIndent).Append("effectShow = ");
                sb.Append(effectShow);
            }
            if (HasControlFlag())
            {
                sb.Append(",\r\n").Append(curIndent).Append("controlFlag = ");
                sb.Append(controlFlag);
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }
Exemple #17
0
        public string ToFormatString(string newLineIndent)
        {
            var sb = StringBuilderCache.Acquire();

            sb.Append("UnitProp{\r\n");
            var curIndent = newLineIndent + '\t';

            if (HasAiTmplId())
            {
                sb.Append(",\r\n").Append(curIndent).Append("aiTmplId = ");
                sb.Append(aiTmplId);
            }
            if (HasHpMax())
            {
                sb.Append(",\r\n").Append(curIndent).Append("hpMax = ");
                sb.Append(hpMax);
            }
            if (HasMpMax())
            {
                sb.Append(",\r\n").Append(curIndent).Append("mpMax = ");
                sb.Append(mpMax);
            }
            if (HasPhyAtk())
            {
                sb.Append(",\r\n").Append(curIndent).Append("phyAtk = ");
                sb.Append(phyAtk);
            }
            if (HasPhyDef())
            {
                sb.Append(",\r\n").Append(curIndent).Append("phyDef = ");
                sb.Append(phyDef);
            }
            if (HasMagAtk())
            {
                sb.Append(",\r\n").Append(curIndent).Append("magAtk = ");
                sb.Append(magAtk);
            }
            if (HasMagDef())
            {
                sb.Append(",\r\n").Append(curIndent).Append("magDef = ");
                sb.Append(magDef);
            }
            if (HasAtkTimeLength())
            {
                sb.Append(",\r\n").Append(curIndent).Append("atkTimeLength = ");
                sb.Append(atkTimeLength);
            }
            if (HasAtkKeyFrameTime())
            {
                sb.Append(",\r\n").Append(curIndent).Append("atkKeyFrameTime = ");
                sb.Append(atkKeyFrameTime);
            }
            if (HasStiffTime())
            {
                sb.Append(",\r\n").Append(curIndent).Append("stiffTime = ");
                sb.Append(stiffTime);
            }
            if (HasFov())
            {
                sb.Append(",\r\n").Append(curIndent).Append("fov = ");
                sb.Append(fov);
            }
            if (HasAtkRange())
            {
                sb.Append(",\r\n").Append(curIndent).Append("atkRange = ");
                sb.Append(atkRange);
            }
            if (HasBodySize())
            {
                sb.Append(",\r\n").Append(curIndent).Append("bodySize = ");
                sb.Append(bodySize);
            }
            if (HasHit())
            {
                sb.Append(",\r\n").Append(curIndent).Append("hit = ");
                sb.Append(hit);
            }
            if (HasDodge())
            {
                sb.Append(",\r\n").Append(curIndent).Append("dodge = ");
                sb.Append(dodge);
            }
            if (HasCrit())
            {
                sb.Append(",\r\n").Append(curIndent).Append("crit = ");
                sb.Append(crit);
            }
            if (HasToughness())
            {
                sb.Append(",\r\n").Append(curIndent).Append("toughness = ");
                sb.Append(toughness);
            }
            if (HasMoveSpeed())
            {
                sb.Append(",\r\n").Append(curIndent).Append("moveSpeed = ");
                sb.Append(moveSpeed);
            }
            if (HasAbilitiesData())
            {
                sb.Append(",\r\n").Append(curIndent).Append("abilitiesData = ");
                sb.Append(abilitiesData == null ? "null" : abilitiesData.ToFormatString(curIndent));
            }
            if (HasExtProps())
            {
                sb.Append(",\r\n").Append(curIndent).Append("extProps = ");
                sb.Append(extProps == null ? "null" : extProps.ToFormatString(curIndent));
            }
            sb.Append("\r\n");
            sb.Append(newLineIndent).Append('}');
            return(StringBuilderCache.GetAndRelease(sb));
        }