addToClient
This commit is contained in:
parent
e0960fc839
commit
1a6f1c0fce
1 changed files with 7 additions and 0 deletions
|
@ -128,7 +128,14 @@ namespace ZoFo.GameCore
|
||||||
gameObjects.Add(new Player((update as UpdateGameObjectCreated).position));
|
gameObjects.Add(new Player((update as UpdateGameObjectCreated).position));
|
||||||
if ((update as UpdateGameObjectCreated).GameObjectType == "Ammo")
|
if ((update as UpdateGameObjectCreated).GameObjectType == "Ammo")
|
||||||
gameObjects.Add(new Ammo((update as UpdateGameObjectCreated).position));
|
gameObjects.Add(new Ammo((update as UpdateGameObjectCreated).position));
|
||||||
|
<<<<<<< Updated upstream
|
||||||
|
if ((update as UpdateGameObjectCreated).GameObjectType == "Zombie")
|
||||||
|
gameObjects.Add(new Zombie((update as UpdateGameObjectCreated).position));
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
|
|
||||||
|
>>>>>>> Stashed changes
|
||||||
(gameObjects.Last() as Entity).SetIdByClient((update as UpdateGameObjectCreated).IdEntity);
|
(gameObjects.Last() as Entity).SetIdByClient((update as UpdateGameObjectCreated).IdEntity);
|
||||||
//var a = Assembly.GetAssembly(typeof(GameObject));
|
//var a = Assembly.GetAssembly(typeof(GameObject));
|
||||||
//gameObjects.Add( TODO reflection
|
//gameObjects.Add( TODO reflection
|
||||||
|
|
Loading…
Add table
Reference in a new issue