Add particles!
This commit is contained in:
@@ -34,6 +34,45 @@ static OwnerType getOwnerType(BzTileID tile) {
|
||||
}
|
||||
}
|
||||
|
||||
typedef enum ParticleType {
|
||||
PARTICLE_NONE = -1,
|
||||
PARTICLE_CIRCLE,
|
||||
PARTICLE_SMALL_SQUARE,
|
||||
PARTICLE_SQUARE,
|
||||
PARTICLE_COUNT,
|
||||
} ParticleType;
|
||||
|
||||
static BzTileID getParticleTypeTile(ParticleType type) {
|
||||
switch (type) {
|
||||
case PARTICLE_SQUARE: return 1559;
|
||||
case PARTICLE_CIRCLE: return 1560;
|
||||
case PARTICLE_SMALL_SQUARE: return 1561;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static ParticleType getParticleType(BzTileID tile) {
|
||||
switch (tile) {
|
||||
case 1559:
|
||||
return PARTICLE_SQUARE;
|
||||
case 1560:
|
||||
return PARTICLE_CIRCLE;
|
||||
case 1561:
|
||||
return PARTICLE_SMALL_SQUARE;
|
||||
default:
|
||||
return PARTICLE_COUNT;
|
||||
}
|
||||
}
|
||||
|
||||
static const char *getParticleTypeStr(ParticleType type) {
|
||||
switch (type) {
|
||||
case PARTICLE_SQUARE: return "square";
|
||||
case PARTICLE_CIRCLE: return "circle";
|
||||
case PARTICLE_SMALL_SQUARE: return "small_square";
|
||||
default: return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
typedef enum TerrainType {
|
||||
TERRAIN_NONE = -1,
|
||||
TERRAIN_GOLD_ORE,
|
||||
|
||||
Reference in New Issue
Block a user