fixed monstats lint errors, added doc file for d2datadict (#494)

* adding comments to d2interface for linter

* moved d2render renderer interfaces and types into d2interface

* fixed most lint errors for monstats loader
This commit is contained in:
dk 2020-06-29 15:46:31 -07:00 committed by GitHub
parent eb69eebcc1
commit 06202a2ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 721 additions and 800 deletions

View File

@ -0,0 +1,3 @@
// Package d2datadict parses txt files as data dictionaries and exports records arrays
// For the Diablo II MPQ's, data dictionaries are the tab-separated value txt files found in `data/global/excel`
package d2datadict

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
package d2enum
// MonsterAlignmentType determines the hostility of the monster towards players
type MonsterAlignmentType int
const (
// MonsterEnemy flag will make monsters hostile towards players
MonsterEnemy MonsterAlignmentType = iota
// MonsterFriend will make monsters friendly towards players
// this is likely used by NPC's and summons
MonsterFriend
// MonsterNeutral will make monsters not care about players or monsters
// this flag is used for `critter` type monsters
MonsterNeutral
)

View File

@ -0,0 +1,12 @@
package d2enum
// MonsterCombatType is used for setting the monster as melee or ranged
type MonsterCombatType int
const (
// MonsterMelee is a flag that sets the monster as melee-only
MonsterMelee MonsterCombatType = iota
// MonsterRanged is a flag that sets the monster as ranged-only
MonsterRanged
)