-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Location struct and fixed possible panic
- Loading branch information
1 parent
2a5f318
commit e4b4f8e
Showing
3 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
package item | ||
|
||
type Location string | ||
type LocationType string | ||
|
||
type Location struct { | ||
LocationType | ||
Page int | ||
} | ||
|
||
const ( | ||
LocationEquipped Location = "equipped" | ||
LocationStash Location = "stash" | ||
LocationSharedStash1 Location = "shared_stash_1" | ||
LocationSharedStash2 Location = "shared_stash_2" | ||
LocationSharedStash3 Location = "shared_stash_3" | ||
LocationBelt Location = "belt" | ||
LocationInventory Location = "inventory" | ||
LocationCube Location = "cube" | ||
LocationVendor Location = "vendor" | ||
LocationGround Location = "ground" | ||
LocationSocket Location = "socket" | ||
LocationUnknown Location = "unknown" | ||
LocationCursor Location = "cursor" | ||
LocationEquipped LocationType = "equipped" | ||
LocationStash LocationType = "stash" | ||
LocationSharedStash LocationType = "shared_stash" | ||
LocationBelt LocationType = "belt" | ||
LocationInventory LocationType = "inventory" | ||
LocationCube LocationType = "cube" | ||
LocationVendor LocationType = "vendor" | ||
LocationGround LocationType = "ground" | ||
LocationSocket LocationType = "socket" | ||
LocationUnknown LocationType = "unknown" | ||
LocationCursor LocationType = "cursor" | ||
) |
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
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