Player is now spawned as the correct class that they picked.

This commit is contained in:
2016-03-13 23:05:52 +01:00
parent fc7f57fd5d
commit 9d2ce5af8a
7 changed files with 2676 additions and 359 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ private:
enum class PlayerClass
{
None = 0,
Assault,
Defender,
Sniper
Assault = 1,
Defender = 2,
Sniper = 2
};
struct SpawnRequest
{
+1
View File
@@ -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;