osb/source/game/StarCollisionBlock.cpp
Kae 772b0585c2 deduplicate const CollisionBlock sets
when i dumped the symbols, these two and their initializers had over 150 duplicates
2024-04-13 16:15:17 +10:00

25 lines
808 B
C++

#include "StarCollisionBlock.hpp"
namespace Star {
CollisionSet const DefaultCollisionSet({CollisionKind::Null, CollisionKind::Slippery, CollisionKind::Dynamic, CollisionKind::Block});
CollisionSet const BlockCollisionSet({CollisionKind::Block, CollisionKind::Slippery});
EnumMap<TileCollisionOverride> const TileCollisionOverrideNames = {
{TileCollisionOverride::None, "None"},
{TileCollisionOverride::Empty, "Empty"},
{TileCollisionOverride::Platform, "Platform"},
{TileCollisionOverride::Block, "Block"}
};
EnumMap<CollisionKind> const CollisionKindNames{
{CollisionKind::Null, "Null"},
{CollisionKind::None, "None"},
{CollisionKind::Platform, "Platform"},
{CollisionKind::Dynamic, "Dynamic"},
{CollisionKind::Slippery, "Slippery"},
{CollisionKind::Block, "Block"}
};
}