Add summary
This commit is contained in:
parent
540727f071
commit
58d6627af9
12 changed files with 46 additions and 10 deletions
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateAnimation : UpdateData //хранит новую анимации
|
/// <summary>
|
||||||
|
/// Хранит новое сосотяние анимации
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateAnimation : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateAnimation() { UpdateType = "UpdateAnimation"; }
|
public UpdateAnimation() { UpdateType = "UpdateAnimation"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateEntityHealth : UpdateData//хранит новое хп entity
|
/// <summary>
|
||||||
|
/// Обнивляет хп сущности
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateEntityHealth : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateEntityHealth() { UpdateType = "UpdateEntityHealth"; }
|
public UpdateEntityHealth() { UpdateType = "UpdateEntityHealth"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateGameEnded : UpdateData //хранит полученый лут и уведомляет о конце игры
|
/// <summary>
|
||||||
|
/// Хранит полученый лут и уведомляет о конце игры
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateGameEnded : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateGameEnded() { UpdateType = "UpdateGameEnded"; }
|
public UpdateGameEnded() { UpdateType = "UpdateGameEnded"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateGameObjectCreated : UpdateData //Хранит объект, который только отправили
|
/// <summary>
|
||||||
|
/// Хранит объект, который только отправили
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateGameObjectCreated : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateGameObjectCreated() { UpdateType = "UpdateGameObjectCreated"; }
|
public UpdateGameObjectCreated() { UpdateType = "UpdateGameObjectCreated"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateGameObjectDeleted : UpdateData //Хранит объект, который надоу удлить
|
/// <summary>
|
||||||
|
/// Хранит объект, который надо удлить
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateGameObjectDeleted : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateGameObjectDeleted() { UpdateType = "UpdateGameObjectDeleted"; }
|
public UpdateGameObjectDeleted() { UpdateType = "UpdateGameObjectDeleted"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
||||||
|
|
||||||
public class UpdateInteraction : UpdateData // при попытке взаимодействия с объектом
|
/// <summary>
|
||||||
|
/// При попытке взаимодействия с объектом
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateInteraction : UpdateData
|
||||||
{
|
{
|
||||||
public int IdEntity { get; set; }
|
public int IdEntity { get; set; }
|
||||||
public string UpdateType { get; set; }
|
public string UpdateType { get; set; }
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// При изменении возможности повзаимодействовать с объектом
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="idEntity"></param>
|
||||||
|
/// <param name="isReady"></param>
|
||||||
public class UpdateInteractionReady(int idEntity, bool isReady)
|
public class UpdateInteractionReady(int idEntity, bool isReady)
|
||||||
: UpdateData // при изменении возможности повзаимодействовать с объектом
|
: UpdateData
|
||||||
{
|
{
|
||||||
public int IdEntity { get; set; } = idEntity;
|
public int IdEntity { get; set; } = idEntity;
|
||||||
public string UpdateType { get; set; }
|
public string UpdateType { get; set; }
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdateLoot : UpdateData //Хранит лут
|
/// <summary>
|
||||||
|
/// Хранит лут
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateLoot : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateLoot() { UpdateType = "UpdateLoot"; }
|
public UpdateLoot() { UpdateType = "UpdateLoot"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdatePlayerParametrs : UpdateData //Хранит хп, радиацию
|
/// <summary>
|
||||||
|
/// Хранит хп, радиацию
|
||||||
|
/// </summary>
|
||||||
|
public class UpdatePlayerParametrs : UpdateData
|
||||||
{
|
{
|
||||||
public UpdatePlayerParametrs() { UpdateType = "UpdatePlayerParametrs"; }
|
public UpdatePlayerParametrs() { UpdateType = "UpdatePlayerParametrs"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
public class UpdatePosition : UpdateData //Хранит новую позицию
|
/// <summary>
|
||||||
|
/// Хранит новую позицию
|
||||||
|
/// </summary>
|
||||||
|
public class UpdatePosition : UpdateData
|
||||||
{
|
{
|
||||||
public UpdatePosition() { UpdateType = "UpdatePosition"; }
|
public UpdatePosition() { UpdateType = "UpdatePosition"; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,9 @@ using ZoFo.GameCore.GameManagers.NetworkManager.Updates.ClientToServer;
|
||||||
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// При создании тайла
|
||||||
|
/// </summary>
|
||||||
public class UpdateTileCreated : UpdateData
|
public class UpdateTileCreated : UpdateData
|
||||||
{
|
{
|
||||||
public UpdateTileCreated() { UpdateType = "UpdateTileCreated"; }
|
public UpdateTileCreated() { UpdateType = "UpdateTileCreated"; }
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager.Updates
|
||||||
[JsonDerivedType(typeof(UpdateEntityHealth))]
|
[JsonDerivedType(typeof(UpdateEntityHealth))]
|
||||||
[JsonDerivedType(typeof(UpdateGameEnded))]
|
[JsonDerivedType(typeof(UpdateGameEnded))]
|
||||||
[JsonDerivedType(typeof(UpdateGameObjectCreated))]
|
[JsonDerivedType(typeof(UpdateGameObjectCreated))]
|
||||||
|
[JsonDerivedType(typeof(UpdateGameObjectDeleted))]
|
||||||
[JsonDerivedType(typeof(UpdateLoot))]
|
[JsonDerivedType(typeof(UpdateLoot))]
|
||||||
[JsonDerivedType(typeof(UpdatePlayerParametrs))]
|
[JsonDerivedType(typeof(UpdatePlayerParametrs))]
|
||||||
[JsonDerivedType(typeof(UpdatePosition))]
|
[JsonDerivedType(typeof(UpdatePosition))]
|
||||||
|
|
Loading…
Add table
Reference in a new issue