-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display correct container icon when opening containers
- Loading branch information
Showing
25 changed files
with
302 additions
and
129 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "bak/entityType.hpp" | ||
|
||
namespace BAK { | ||
|
||
unsigned GetContainerTypeFromEntityType(EntityType et) | ||
{ | ||
using enum EntityType; | ||
switch (et) | ||
{ | ||
case BAG: return 0; | ||
case CHEST: return 1; | ||
case DIRTPILE: return 2; | ||
case TOMBSTONE: return 3; | ||
case DEADBODY1: [[fallthrough]]; | ||
case DEADBODY2: return 4; | ||
case TRAP: return 5; | ||
case BUSH1: [[fallthrough]]; | ||
case BUSH2: [[fallthrough]]; | ||
case BUSH3: return 6; | ||
// 7 is shop, which is not an entity | ||
case CRYST: return 8; | ||
case STUMP: return 9; | ||
case BUILDING: return 10; | ||
default: return 0; | ||
} | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#pragma once | ||
|
||
namespace BAK { | ||
|
||
enum class EntityType | ||
{ | ||
TERRAIN = 0, | ||
EXTERIOR = 1, | ||
BRIDGE = 2, | ||
INTERIOR = 3, | ||
HILL = 4, | ||
TREE = 5, | ||
CHEST = 6, | ||
DEADBODY1 = 7, | ||
FENCE = 8, | ||
GATE = 9, // RIFT GATE | ||
BUILDING = 10, | ||
TOMBSTONE = 12, | ||
SIGN = 13, | ||
TUNNEL1 = 14, // ALSO TUNNEL... | ||
PIT = 15, | ||
DEADBODY2 = 16, | ||
DIRTPILE = 17, | ||
CORN = 18, | ||
FIRE = 19, | ||
ENTRANCE = 20, | ||
GROVE = 21, | ||
FERN = 22, | ||
DOOR = 23, | ||
CRYST = 24, | ||
ROCKPILE = 25, | ||
BUSH1 = 26, | ||
BUSH2 = 27, | ||
BUSH3 = 28, | ||
SLAB = 29, | ||
STUMP = 30, | ||
WELL = 31, | ||
ENGINE = 33, | ||
SCARECROW = 34, | ||
TRAP = 35, | ||
CATAPULT = 36, | ||
COLUMN = 37, | ||
LANDSCAPE = 38, | ||
TUNNEL2 = 39, // with tunnel | ||
BAG = 41, | ||
LADDER = 42 | ||
}; | ||
|
||
unsigned GetContainerTypeFromEntityType(EntityType); | ||
|
||
} |
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
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
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
Oops, something went wrong.