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:
parent
eb69eebcc1
commit
06202a2ddf
|
@ -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
|
@ -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
|
||||
)
|
|
@ -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
|
||||
)
|
Loading…
Reference in New Issue