Player is now spawned as the correct class that they picked.
This commit is contained in:
@@ -19,9 +19,9 @@ private:
|
||||
enum class PlayerClass
|
||||
{
|
||||
None = 0,
|
||||
Assault,
|
||||
Defender,
|
||||
Sniper
|
||||
Assault = 1,
|
||||
Defender = 2,
|
||||
Sniper = 2
|
||||
};
|
||||
struct SpawnRequest
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
// will try to pick a spawn location so that the spawned entity doesn't
|
||||
// collide with anything that has that component and is collidable.
|
||||
static EntityWrapper Spawn(EntityWrapper spawner, EntityWrapper parent = EntityWrapper::Invalid, const std::string& dontCollideComponent = "");
|
||||
static EntityWrapper SpawnEntityFile(const std::string& entityFilePath, EntityWrapper spawner, EntityWrapper parent = EntityWrapper::Invalid, const std::string& dontCollideComponent = "");
|
||||
|
||||
private:
|
||||
EventRelay<SpawnerSystem, Events::SpawnerSpawn> m_OnSpawnerSpawn;
|
||||
|
||||
Reference in New Issue
Block a user