AddTodoToAddDifferentPlayers

This commit is contained in:
AnloGames 2024-08-20 17:36:45 +03:00
parent ff7d89aae0
commit 09ecf63c80
3 changed files with 3 additions and 1 deletions

View file

@ -197,6 +197,7 @@ namespace ZoFo.GameCore
}
else if (update is UpdateGameObjectCreated)
{
//TODO
Entity created_gameObject;
if ((update as UpdateGameObjectCreated).GameObjectType == "Player")
{

View file

@ -12,6 +12,6 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
public class UpdateGameObjectDeleted : UpdateData
{
public UpdateGameObjectDeleted() { UpdateType = "UpdateGameObjectDeleted"; isImportant = false; }
public string GameObjectType;
public string GameObjectType { get; set; }
}
}

View file

@ -123,6 +123,7 @@ namespace ZoFo.GameCore
networkManager.StartGame();
new MapManager().LoadMap();
//TODO
//AppManager.Instance.server.RegisterGameObject(new EntittyForAnimationTests(new Vector2(0, 0)));
AppManager.Instance.server.RegisterGameObject(new Player(new Vector2(760, 140)));
//for (int i = 0; i < 20; i++)