Housekeeping.
This commit is contained in:
1 parent
257318926d
commit
b3a8ef8c0f
2 files changed
+14
-3
No files matched your search
@@ -17,6 +17,13 @@ func NewHolster() *Holster {
|
||||
return holster
|
||||
}
|
||||
|
||||
func (h *Holster) SetActiveWeapon(wt gamedata.WeaponType) {
|
||||
_, ok := h.guns[wt]
|
||||
if ok {
|
||||
h.activewp = wt
|
||||
}
|
||||
}
|
||||
|
||||
func (h *Holster) GetActiveWeapon() Weapon {
|
||||
return h.guns[h.activewp]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user