Add summary

This commit is contained in:
Mootfrost777 2024-08-17 01:13:02 +03:00
parent 540727f071
commit 58d6627af9
12 changed files with 46 additions and 10 deletions

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateAnimation : UpdateData //хранит новую анимации
/// <summary>
/// Хранит новое сосотяние анимации
/// </summary>
public class UpdateAnimation : UpdateData
{
public UpdateAnimation() { UpdateType = "UpdateAnimation"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateEntityHealth : UpdateData//хранит новое хп entity
/// <summary>
/// Обнивляет хп сущности
/// </summary>
public class UpdateEntityHealth : UpdateData
{
public UpdateEntityHealth() { UpdateType = "UpdateEntityHealth"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateGameEnded : UpdateData //хранит полученый лут и уведомляет о конце игры
/// <summary>
/// Хранит полученый лут и уведомляет о конце игры
/// </summary>
public class UpdateGameEnded : UpdateData
{
public UpdateGameEnded() { UpdateType = "UpdateGameEnded"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateGameObjectCreated : UpdateData //Хранит объект, который только отправили
/// <summary>
/// Хранит объект, который только отправили
/// </summary>
public class UpdateGameObjectCreated : UpdateData
{
public UpdateGameObjectCreated() { UpdateType = "UpdateGameObjectCreated"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateGameObjectDeleted : UpdateData //Хранит объект, который надоу удлить
/// <summary>
/// Хранит объект, который надо удлить
/// </summary>
public class UpdateGameObjectDeleted : UpdateData
{
public UpdateGameObjectDeleted() { UpdateType = "UpdateGameObjectDeleted"; }
}

View file

@ -1,6 +1,9 @@
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
public class UpdateInteraction : UpdateData // при попытке взаимодействия с объектом
/// <summary>
/// При попытке взаимодействия с объектом
/// </summary>
public class UpdateInteraction : UpdateData
{
public int IdEntity { get; set; }
public string UpdateType { get; set; }

View file

@ -1,7 +1,12 @@
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
/// <summary>
/// При изменении возможности повзаимодействовать с объектом
/// </summary>
/// <param name="idEntity"></param>
/// <param name="isReady"></param>
public class UpdateInteractionReady(int idEntity, bool isReady)
: UpdateData // при изменении возможности повзаимодействовать с объектом
: UpdateData
{
public int IdEntity { get; set; } = idEntity;
public string UpdateType { get; set; }

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdateLoot : UpdateData //Хранит лут
/// <summary>
/// Хранит лут
/// </summary>
public class UpdateLoot : UpdateData
{
public UpdateLoot() { UpdateType = "UpdateLoot"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdatePlayerParametrs : UpdateData //Хранит хп, радиацию
/// <summary>
/// Хранит хп, радиацию
/// </summary>
public class UpdatePlayerParametrs : UpdateData
{
public UpdatePlayerParametrs() { UpdateType = "UpdatePlayerParametrs"; }
}

View file

@ -6,7 +6,10 @@ using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
public class UpdatePosition : UpdateData //Хранит новую позицию
/// <summary>
/// Хранит новую позицию
/// </summary>
public class UpdatePosition : UpdateData
{
public UpdatePosition() { UpdateType = "UpdatePosition"; }
}

View file

@ -11,6 +11,9 @@ using ZoFo.GameCore.GameManagers.NetworkManager.Updates.ClientToServer;
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
{
/// <summary>
/// При создании тайла
/// </summary>
public class UpdateTileCreated : UpdateData
{
public UpdateTileCreated() { UpdateType = "UpdateTileCreated"; }

View file

@ -14,6 +14,7 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates
[JsonDerivedType(typeof(UpdateEntityHealth))]
[JsonDerivedType(typeof(UpdateGameEnded))]
[JsonDerivedType(typeof(UpdateGameObjectCreated))]
[JsonDerivedType(typeof(UpdateGameObjectDeleted))]
[JsonDerivedType(typeof(UpdateLoot))]
[JsonDerivedType(typeof(UpdatePlayerParametrs))]
[JsonDerivedType(typeof(UpdatePosition))]