mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-04 15:46:51 -05:00
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
3
d2common/d2data/d2datadict/d2datadict.go
Normal file
3
d2common/d2data/d2datadict/d2datadict.go
Normal 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
17
d2common/d2enum/monster_alignment_type.go
Normal file
17
d2common/d2enum/monster_alignment_type.go
Normal 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
|
||||
)
|
12
d2common/d2enum/monster_combat_type.go
Normal file
12
d2common/d2enum/monster_combat_type.go
Normal 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
|
||||
)
|
Loading…
Reference in New Issue
Block a user