HotBar Fix and DTO Splitting
This commit is contained in:
@@ -12,6 +12,7 @@ using Server.Networking.Messages;
|
||||
using Server.Redis;
|
||||
using GameServices;
|
||||
using GameServices.Auth;
|
||||
using GameServer.Networking.DTOs;
|
||||
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
@@ -4462,117 +4463,6 @@ public sealed partial class DungeonHandler : IClientMessageHandler
|
||||
|
||||
// Request/Input DTOs
|
||||
|
||||
public class StatAllocateRequest
|
||||
{
|
||||
public string Stat { get; set; } = "";
|
||||
}
|
||||
|
||||
public class DungeonEnterRequest
|
||||
{
|
||||
public int Tier { get; set; } = 1;
|
||||
}
|
||||
|
||||
public class MoveInput
|
||||
{
|
||||
public float Dx { get; set; }
|
||||
public float Dy { get; set; }
|
||||
public float AimAngle { get; set; }
|
||||
}
|
||||
|
||||
public class AttackInput
|
||||
{
|
||||
public float AimAngle { get; set; }
|
||||
}
|
||||
|
||||
public class PickupInput
|
||||
{
|
||||
public ulong ItemId { get; set; }
|
||||
}
|
||||
|
||||
public class ChestInput
|
||||
{
|
||||
public ulong ChestId { get; set; }
|
||||
}
|
||||
public class EquipItemRequest
|
||||
{
|
||||
public int SlotIndex { get; set; }
|
||||
}
|
||||
|
||||
public class UnequipItemRequest
|
||||
{
|
||||
public string Slot { get; set; } = "";
|
||||
}
|
||||
|
||||
public class UseItemRequest
|
||||
{
|
||||
public int SlotIndex { get; set; }
|
||||
}
|
||||
public class ChatSendRequest
|
||||
{
|
||||
public string Message { get; set; } = "";
|
||||
}
|
||||
|
||||
public class PortalUseRequest
|
||||
{
|
||||
public int PortalId { get; set; }
|
||||
}
|
||||
|
||||
public class LootChestOpenRequest
|
||||
{
|
||||
public int ChestId { get; set; }
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
public class LootChestTakeAllRequest
|
||||
{
|
||||
public int ChestId { get; set; }
|
||||
}
|
||||
|
||||
public class LootChestCloseRequest
|
||||
{
|
||||
public int ChestId { get; set; }
|
||||
}
|
||||
|
||||
public class DungeonCreateRequest
|
||||
{
|
||||
public int Tier { get; set; }
|
||||
public int BracketMin { get; set; } // 0 = use player's natural bracket, otherwise specify bracket start level
|
||||
}
|
||||
|
||||
public class DungeonJoinRequest
|
||||
{
|
||||
public string DungeonId { get; set; } = "";
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
#region Stash System (VIP Feature)
|
||||
|
||||
@@ -5083,54 +4973,5 @@ public partial class DungeonHandler
|
||||
#endregion
|
||||
}
|
||||
|
||||
// Request DTOs for stash operations
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public class FireProjectileInput
|
||||
{
|
||||
public float DirectionX { get; set; }
|
||||
public float DirectionY { get; set; }
|
||||
}
|
||||
|
||||
// Mob loot request DTOs
|
||||
public class MobLootRequest
|
||||
{
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mobId")]
|
||||
public int MobId { get; set; }
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
public class MobLootTakeAllRequest
|
||||
{
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mobId")]
|
||||
public int MobId { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user