Open LucBerge opened 2 years ago
Well lets not rush this, as this will be a breaking change to my entity definition parser, so lets look what data says
Following value groups are found in the json data:
type: MonsterDrop
type: MonsterDropCoefficient
type: EffectZone
type: MonsterGrade
type: EffectInstanceDice
TypeValue: 2 NameValue: parameters => type: QuestObjectiveParameters
TypeValue: 2 NameValue: bonusCharacteristics => type: MonsterBonusCharacteristics
TypeValue: 2 NameValue: SoundUi
TypeValue: 1 NameValue: coords => type: Point
TypeValue: 1 NameValue: bounds => type: Rectangle
TypeValue: 1 NameValue: BreedRoleByBreed
TypeValue: -1 NameValue: npcId
TypeValue: -1 NameValue: monsterId
TypeValue: -2 NameValue: isVisible
TypeValue: -2 NameValue: isTransition
TypeValue: -3 NameValue: animName
TypeValue: -3 NameValue: aggressiveImmunityCriterion
TypeValue: -3 NameValue: adminName
TypeValue: -4 NameValue: scaleY
TypeValue: -4 NameValue: scaleX
TypeValue: -4 NameValue: random
TypeValue: -4 NameValue: probability
TypeValue: -5 NameValue: sectorNameId
TypeValue: -5 NameValue: theoreticalDescriptionId
TypeValue: -5 NameValue: textStringId
TypeValue: -5 NameValue: textKey
TypeValue: -6 NameValue: spellLevelId
TypeValue: -6 NameValue: rewardId
TypeValue: -6 NameValue: resultTypeId
TypeValue: -6 NameValue: requiredSubDays
TypeValue: -6 NameValue: packId
Vector<int>
Vector<Number>
numeric values that are convertible to the primitive types byte, double, float, int, long, and short.
always end in -4 likely a float
Vector<Point>
Vector<Vector<int>>
Vector<Vector<Number>>
again ends in -4 a float likely
"name": "statPerLevelRange",
"type": -99,
"vectorTypes": {
"name": "Vector.<Vector.<Number>>",
"type": -99,
"vectorTypes": {
"name": "Vector.<Number>",
"type": -4
}
}
"statPerLevelRange": [
[
1.0,
3.0
],
[
50.0,
3.0
],
[
100.0,
5.0
],
[
150.0,
7.0
],
[
200.0,
9.0
]
]
Vector<Vector<Point>>
In the enties files, the field type are negative numbers. Display the type in string instead of the number.
-1 : integer -2 : boolean -3 : utf (string) -4 : double -5 : i18n -6 : unsigned_integer (id of entity) -99 : list
Rewrite the D2oReader class