deduplicate const CollisionBlock sets
when i dumped the symbols, these two and their initializers had over 150 duplicates
This commit is contained in:
parent
dab179e355
commit
772b0585c2
@ -2,6 +2,9 @@
|
||||
|
||||
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"},
|
||||
|
@ -53,10 +53,10 @@ private:
|
||||
};
|
||||
|
||||
// The default CollisionSet consists of Null, Slippery, Dynamic and Block
|
||||
CollisionSet const DefaultCollisionSet({CollisionKind::Null, CollisionKind::Slippery, CollisionKind::Dynamic, CollisionKind::Block});
|
||||
extern CollisionSet const DefaultCollisionSet;
|
||||
|
||||
// Defines what can be "blocks" e.g. for tile rendering: Block and Slippery
|
||||
CollisionSet const BlockCollisionSet({CollisionKind::Block, CollisionKind::Slippery});
|
||||
extern CollisionSet const BlockCollisionSet;
|
||||
|
||||
extern EnumMap<TileCollisionOverride> const TileCollisionOverrideNames;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user