HotBar Fix and DTO Splitting

This commit is contained in:
dingo
2026-01-26 11:40:49 -05:00
parent b18c943b78
commit b861e65090
26 changed files with 213 additions and 160 deletions
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class AttackInput
{
public float AimAngle { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class ChatSendRequest
{
public string Message { get; set; } = "";
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class ChestInput
{
public ulong ChestId { get; set; }
}
}
+17
View File
@@ -0,0 +1,17 @@
namespace GameServer.Networking.DTOs
{
public class CraftingAttemptRequest
{
[System.Text.Json.Serialization.JsonPropertyName("RecipeId")]
public int RecipeId { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("Ingredients")]
public List<CraftingIngredientInput>? Ingredients { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("Discover")]
public bool Discover { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("SkillType")]
public int? SkillType { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace GameServer.Networking.DTOs
{
public class CraftingIngredientInput
{
[System.Text.Json.Serialization.JsonPropertyName("itemDefinitionId")]
public int ItemDefinitionId { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("quantity")]
public int Quantity { get; set; }
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace GameServer.Networking.DTOs
{
public class DungeonCreateRequest
{
public int Tier { get; set; }
public int BracketMin { get; set; } // 0 = use player's natural bracket, otherwise specify bracket start level
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class DungeonEnterRequest
{
public int Tier { get; set; } = 1;
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class DungeonJoinRequest
{
public string DungeonId { get; set; } = "";
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class EquipItemRequest
{
public int SlotIndex { get; set; }
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace GameServer.Networking.DTOs
{
public class FireProjectileInput
{
public float DirectionX { get; set; }
public float DirectionY { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class LootChestCloseRequest
{
public int ChestId { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class LootChestOpenRequest
{
public int ChestId { get; set; }
}
}
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class LootChestTakeAllRequest
{
public int ChestId { get; set; }
}
}
@@ -0,0 +1,9 @@
namespace GameServer.Networking.DTOs
{
public class LootChestTakeItemRequest
{
public int ChestId { get; set; }
public int SlotIndex { get; set; }
public int TargetSlotIndex { get; set; } // Where to put it in player inventory (-1 for auto)
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace GameServer.Networking.DTOs
{
public class MobLootRequest
{
[System.Text.Json.Serialization.JsonPropertyName("mobId")]
public int MobId { get; set; }
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace GameServer.Networking.DTOs
{
public class MobLootTakeAllRequest
{
[System.Text.Json.Serialization.JsonPropertyName("mobId")]
public int MobId { get; set; }
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace GameServer.Networking.DTOs
{
public class MobLootTakeItemRequest
{
[System.Text.Json.Serialization.JsonPropertyName("mobId")]
public int MobId { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("itemIndex")]
public int ItemIndex { get; set; }
}
}
+9
View File
@@ -0,0 +1,9 @@
namespace GameServer.Networking.DTOs
{
public class MoveInput
{
public float Dx { get; set; }
public float Dy { get; set; }
public float AimAngle { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class PickupInput
{
public ulong ItemId { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class PortalUseRequest
{
public int PortalId { get; set; }
}
}
+14
View File
@@ -0,0 +1,14 @@
namespace GameServer.Networking.DTOs
{
public class StashDepositRequest
{
[System.Text.Json.Serialization.JsonPropertyName("inventorySlot")]
public int InventorySlot { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("quantity")]
public int Quantity { get; set; } = 1;
[System.Text.Json.Serialization.JsonPropertyName("targetSlot")]
public int TargetSlot { get; set; } = -1;
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace GameServer.Networking.DTOs
{
public class StashWithdrawRequest
{
[System.Text.Json.Serialization.JsonPropertyName("stashSlot")]
public int StashSlot { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("quantity")]
public int Quantity { get; set; } = 1;
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class StatAllocateRequest
{
public string Stat { get; set; } = "";
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class UnequipItemRequest
{
public string Slot { get; set; } = "";
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace GameServer.Networking.DTOs
{
public class UseItemRequest
{
public int SlotIndex { get; set; }
}
}