Fix server
This commit is contained in:
parent
7bce47259c
commit
4d6c32bd37
3 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
||||
|
||||
public class UpdateInteraction : IUpdateData // при попытке взаимодействия с объектом
|
||||
public class UpdateInteraction : UpdateData // при попытке взаимодействия с объектом
|
||||
{
|
||||
public int IdEntity { get; set; }
|
||||
public string UpdateType { get; set; }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
||||
|
||||
public class UpdateInteractionAvailable(int idEntity, bool isReady)
|
||||
: IUpdateData // при изменении возможности повзаимодействовать с объектом
|
||||
: UpdateData // при изменении возможности повзаимодействовать с объектом
|
||||
{
|
||||
public int IdEntity { get; set; } = idEntity;
|
||||
public string UpdateType { get; set; }
|
||||
|
|
|
@ -12,7 +12,6 @@ public abstract class GameObject
|
|||
{
|
||||
public Vector2 position;
|
||||
|
||||
private Server server;
|
||||
public Vector2 rotation; //вектор направления объекта
|
||||
public abstract GraphicsComponent graphicsComponent { get; }
|
||||
|
||||
|
@ -20,8 +19,7 @@ public abstract class GameObject
|
|||
public GameObject(Vector2 position)
|
||||
{
|
||||
this.position = position;
|
||||
server = new Server();
|
||||
server.RegisterGameObject(this);
|
||||
AppManager.Instance.server.RegisterGameObject(this);
|
||||
|
||||
graphicsComponent.LoadContent();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue