-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init data models; move calculation in models
- Loading branch information
Showing
10 changed files
with
902 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export interface Class { | ||
id: number | ||
name: string | ||
attack: number | ||
defense: number | ||
power: number | ||
knowledge: number | ||
} | ||
|
||
export interface ClassTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export interface Creature { | ||
aiValue?: number | ||
attack: number | ||
cost?: number | ||
defense: number | ||
fightValue?: number | ||
growth?: number | ||
health: number | ||
hits: number | ||
id: number | ||
level: number | ||
maxDamage: number | ||
minDamage: number | ||
nativeTerrain: number | ||
speed?: number | ||
name: string | ||
ranged?: boolean | ||
townId?: number | ||
hexs?: number | ||
shots?: number | ||
hates?: Array<number> | ||
} | ||
|
||
export interface CreatureTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export interface Hero { | ||
id: number | ||
name: string | ||
classId: number | ||
specialtySkill?: string | ||
specialtySpell?: number | ||
specialtyUnit?: Array<number> | ||
} | ||
|
||
export interface HeroTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export interface Level { | ||
id: number | ||
name: string | ||
value: number | ||
} | ||
|
||
export interface LevelTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface Skill { | ||
id: number | ||
name: string | ||
} | ||
|
||
export interface SkillTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export interface Spell { | ||
id: number | ||
name: string | ||
level: number | ||
element: Elements | ||
} | ||
|
||
export interface SpellTranslation { | ||
id: number | ||
name: string | ||
element: ElementsRu | ||
} | ||
|
||
type Elements = 'Neutral' | 'Fire' | 'Water' | 'Earth' | 'Air' | ||
type ElementsRu = 'Нейтральный' | 'Огонь' | 'Вода' | 'Земля' | 'Воздух' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface Terrain { | ||
id: number | ||
name: string | ||
} | ||
|
||
export interface TerrainTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface Town { | ||
id: number | ||
name: string | ||
} | ||
|
||
export interface TownTranslation { | ||
id: number | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,260 @@ | ||
export enum Creatures { | ||
Pikeman = 1, | ||
Halberdier, | ||
Archer, | ||
Marksman, | ||
Griffin, | ||
RoyalGriffin, | ||
Swordsman, | ||
Crusader, | ||
Monk, | ||
Zealot, | ||
Cavalier, | ||
Champion, | ||
Angel, | ||
Archangel, | ||
Centaur, | ||
CentaurCaptain, | ||
Dwarf, | ||
BattleDwarf, | ||
WoodElf, | ||
GrandElf, | ||
Pegasus, | ||
SilverPegasus, | ||
DendroidGuard, | ||
DendroidSoldier, | ||
Unicorn, | ||
WarUnicorn, | ||
GreenDragon, | ||
GoldDragon, | ||
Gremlin, | ||
MasterGremlin, | ||
StoneGargoyle, | ||
ObsidianGargoyle, | ||
StoneGolem, | ||
IronGolem, | ||
Mage, | ||
ArchMage, | ||
Genie, | ||
MasterGenie, | ||
Naga, | ||
NagaQueen, | ||
Giant, | ||
Titan, | ||
Skeleton, | ||
SkeletonWarrior, | ||
WalkingDead, | ||
Zombie, | ||
Wight, | ||
Wraith, | ||
Vampire, | ||
VampireLord, | ||
Lich, | ||
PowerLich, | ||
BlackKnight, | ||
DreadKnight, | ||
BoneDragon, | ||
GhostDragon, | ||
Troglodyte, | ||
InfernalTroglodyte, | ||
Harpy, | ||
HarpyHag, | ||
Beholder, | ||
EvilEye, | ||
Medusa, | ||
MedusaQueen, | ||
Minotaur, | ||
MinotaurKing, | ||
Manticore, | ||
Scorpicore, | ||
RedDragon, | ||
BlackDragon, | ||
Imp, | ||
Familiar, | ||
Gog, | ||
Magog, | ||
HellHound, | ||
Cerberus, | ||
Demon, | ||
HornedDemon, | ||
PitFiend, | ||
PitLord, | ||
Efreet, | ||
EfreetSultan, | ||
Devil, | ||
ArchDevil, | ||
Gnoll, | ||
GnollMarauder, | ||
Lizardman, | ||
LizardWarrior, | ||
SerpentFly, | ||
DragonFly, | ||
Basilisk, | ||
GreaterBasilisk, | ||
Gorgon, | ||
MightyGorgon, | ||
Wyvern, | ||
WyvernMonarch, | ||
Hydra, | ||
ChaosHydra, | ||
Goblin, | ||
Hobgoblin, | ||
WolfRider, | ||
WolfRaider, | ||
Orc, | ||
OrcChieftain, | ||
Ogre, | ||
OgreMage, | ||
Roc, | ||
Thunderbird, | ||
Cyclops, | ||
CyclopsKing, | ||
Behemoth, | ||
AncientBehemoth, | ||
Pixie, | ||
Sprite, | ||
AirElemental, | ||
StormElemental, | ||
WaterElemental, | ||
IceElemental, | ||
FireElemental, | ||
EnergyElemental, | ||
EarthElemental, | ||
MagmaElemental, | ||
PsychicElemental, | ||
MagicElemental, | ||
Firebird, | ||
Phoenix, | ||
Peasant, | ||
Halfling, | ||
Boar, | ||
Rogue, | ||
Nomad, | ||
Mummy, | ||
Sharpshooter, | ||
Troll, | ||
GoldGolem, | ||
DiamondGolem, | ||
Enchanter, | ||
FaerieDragon, | ||
RustDragon, | ||
CrystalDragon, | ||
AzureDragon, | ||
Nymph, | ||
Oceanid, | ||
CrewMate, | ||
Seaman, | ||
Pirate, | ||
Corsair, | ||
SeaDog, | ||
Stormbird, | ||
Ayssid, | ||
SeaWitch, | ||
Sorceress, | ||
Nix, | ||
NixWarrior, | ||
SeaSerpent, | ||
Haspid, | ||
Satyr, | ||
Fangarm, | ||
Ballista, | ||
Cannon, | ||
Leprechaun, | ||
SteelGolem, | ||
} | ||
|
||
export enum Spells { | ||
MagicArrow = 1, | ||
Visions, | ||
Bloodlust, | ||
Curse, | ||
ProtectionFromFire, | ||
Blind, | ||
Firewall, | ||
Fireball, | ||
LandMine, | ||
Misfortune, | ||
Armageddon, | ||
Berserk, | ||
FireShield, | ||
Frenzy, | ||
Inferno, | ||
Slayer, | ||
Sacrifice, | ||
SummonFireElemental, | ||
Bless, | ||
Cure, | ||
Dispel, | ||
ProtectionFromWater, | ||
SummonBoat, | ||
IceBolt, | ||
RemoveObstacle, | ||
ScuttleBoat, | ||
Weakness, | ||
Forgetfulness, | ||
FrostRing, | ||
Mirth, | ||
Teleport, | ||
Clone, | ||
Prayer, | ||
WaterWalk, | ||
SummonWaterElemental, | ||
Shield, | ||
Slow, | ||
StoneSkin, | ||
ViewEarth, | ||
DeathRipple, | ||
Quicksand, | ||
AnimateDead, | ||
AntiMagic, | ||
Earthquake, | ||
ForceField, | ||
ProtectionFromEarth, | ||
MeteorShower, | ||
Resurrection, | ||
Sorrow, | ||
TownPortal, | ||
Implosion, | ||
SummonEarthElemental, | ||
Haste, | ||
ViewAir, | ||
Disguise, | ||
DisruptingRay, | ||
Fortune, | ||
LightningBolt, | ||
Precision, | ||
ProtectionFromAir, | ||
AirShield, | ||
DestroyUndead, | ||
Hypnotize, | ||
ChainLightning, | ||
Counterstrike, | ||
DimensionDoor, | ||
Fly, | ||
MagicMirror, | ||
SummonAirElemental, | ||
TitansLightningBolt, | ||
} | ||
|
||
export enum Classes { | ||
Knight = 1, | ||
Cleric, | ||
Ranger, | ||
Druid, | ||
Alchemist, | ||
Wizard, | ||
Demoniac, | ||
Heretic, | ||
DeathKnight, | ||
Necromancer, | ||
Overlord, | ||
Warlock, | ||
Barbarian, | ||
BattleMage, | ||
Beastmaster, | ||
Witch, | ||
Planeswalker, | ||
Elementalist, | ||
Captain, | ||
Navigator, | ||
} |