addToClient

This commit is contained in:
Kaktus200020 2024-08-18 14:33:23 +03:00
parent e0960fc839
commit 1a6f1c0fce

View file

@ -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