Namespace Cleanup, and some fun toys in the admin portal
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public class ChestInstance
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Handles damage calculations with stats, gear, and resistances
|
||||
|
||||
@@ -7,7 +7,7 @@ using Server.Networking;
|
||||
using Server.Networking.Messages;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Handles crafting operations including recipe discovery, crafting, and skill progression
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public class DungeonChestSpawn
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Procedural dungeon generator using BSP (Binary Space Partition) + room placement
|
||||
|
||||
@@ -3,7 +3,7 @@ using DataServer.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Procedural dungeon generator using room templates from database
|
||||
|
||||
@@ -3,7 +3,7 @@ using DataServer.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Dungeon Generator V3 - Uses the DungeonBuilder system
|
||||
|
||||
@@ -10,10 +10,10 @@ using Server.Networking;
|
||||
using Server.Networking.Handling;
|
||||
using Server.Networking.Messages;
|
||||
using Server.Redis;
|
||||
using Server.Services;
|
||||
using Server.Services.Auth;
|
||||
using GameServices;
|
||||
using GameServices.Auth;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Handles dungeon crawler game messages via the server's message router
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Admin/management extensions for DungeonHandler
|
||||
@@ -42,7 +42,7 @@ public partial class DungeonHandler
|
||||
// Note: This is a simplified version - in production you'd want to
|
||||
// properly handle player state transitions
|
||||
//dungeon.Simulation.RemovePlayer(player.CharacterId);
|
||||
Console.WriteLine("Force Close Dungeon -- Needs Implemented");
|
||||
Console.WriteLine("Remove Player - Not Implemented.");
|
||||
}
|
||||
catch { /* Ignore errors during cleanup */ }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an active dungeon instance
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Contains the generated dungeon layout data
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using DataServer.Data.Entities;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Enhanced dungeon layout with full tile visual information
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public class DungeonMobSpawn
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
public enum DungeonPhase
|
||||
namespace GameServer.Dungeon;
|
||||
public enum DungeonPhase
|
||||
{
|
||||
Active,
|
||||
Cleared,
|
||||
|
||||
@@ -2,7 +2,7 @@ using DataServer.Data.Entities;
|
||||
using DataServer.Data.Enums;
|
||||
using Server.Networking;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks a player's dungeon session state
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public struct DungeonPoint
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public class DungeonRoom
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Extended room with template info
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Concurrent;
|
||||
using DataServer.Data.Entities;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime simulation for an active dungeon instance
|
||||
@@ -1050,6 +1050,7 @@ public partial class DungeonSimulation
|
||||
float dy = y2 - y1;
|
||||
return MathF.Sqrt(dx * dx + dy * dy);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Admin extensions for DungeonSimulation
|
||||
|
||||
@@ -3,7 +3,7 @@ using DataServer.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for visual tile data
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime instance of a personal loot chest (from death overflow)
|
||||
|
||||
@@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging;
|
||||
using DataServer.Data;
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Generated loot result - an item with quantity
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using DataServer.Data.Entities;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Handles mob AI behavior and decision making
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using DataServer.Data.Entities;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Loot carried by a mob from killing a player
|
||||
|
||||
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using DataServer.Data;
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Builds sprite configuration JSON for mobs from the database animation system
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon
|
||||
namespace GameServer.Dungeon
|
||||
{
|
||||
/// <summary>
|
||||
/// Placed tile with details
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime instance of a player in a dungeon
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime instance of a portal in a dungeon
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
/// <summary>
|
||||
/// A projectile in flight
|
||||
|
||||
@@ -7,7 +7,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Server.Game.Dungeon
|
||||
namespace GameServer.Dungeon
|
||||
{
|
||||
/// <summary>
|
||||
/// Normalized tag info: supports comma/space separated tokens + key:value tags.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon;
|
||||
namespace GameServer.Dungeon;
|
||||
|
||||
public class TickResult
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Game.Dungeon
|
||||
namespace GameServer.Dungeon
|
||||
{
|
||||
/// <summary>
|
||||
/// Tilemap sheet info for client
|
||||
|
||||
Reference in New Issue
Block a user