mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-12 06:48:40 +00:00
Replace Location table with packed 64-bit int (#679)
* Replace Location table with packed 64 bit int * Remove double Include and fix Slot documentation * Fix compilation errors from merge * Fix namespaces and add expected values to unit tests
This commit is contained in:
parent
575d2b7be7
commit
35ea2682b9
30 changed files with 996 additions and 930 deletions
|
@ -20,7 +20,6 @@ public class HeartedCategory : CategoryWithUser
|
|||
.Where(h => h.Slot.Type == SlotType.User && !h.Slot.Hidden && h.Slot.GameVersion <= GameVersion.LittleBigPlanet3)
|
||||
.OrderByDescending(h => h.HeartedLevelId)
|
||||
.Include(h => h.Slot.Creator)
|
||||
.Include(h => h.Slot.Location)
|
||||
.Select(h => h.Slot)
|
||||
.ByGameVersion(GameVersion.LittleBigPlanet3, false, false, true)
|
||||
.FirstOrDefault();
|
||||
|
@ -30,7 +29,6 @@ public class HeartedCategory : CategoryWithUser
|
|||
.Where(h => h.Slot.Type == SlotType.User && !h.Slot.Hidden && h.Slot.GameVersion <= GameVersion.LittleBigPlanet3)
|
||||
.OrderByDescending(h => h.HeartedLevelId)
|
||||
.Include(h => h.Slot.Creator)
|
||||
.Include(h => h.Slot.Location)
|
||||
.Select(h => h.Slot)
|
||||
.ByGameVersion(GameVersion.LittleBigPlanet3, false, false, true)
|
||||
.Skip(Math.Max(0, pageStart))
|
||||
|
|
|
@ -20,7 +20,6 @@ public class QueueCategory : CategoryWithUser
|
|||
.Where(q => q.Slot.Type == SlotType.User && !q.Slot.Hidden && q.Slot.GameVersion <= GameVersion.LittleBigPlanet3)
|
||||
.OrderByDescending(q => q.QueuedLevelId)
|
||||
.Include(q => q.Slot.Creator)
|
||||
.Include(q => q.Slot.Location)
|
||||
.Select(q => q.Slot)
|
||||
.ByGameVersion(GameVersion.LittleBigPlanet3, false, false, true)
|
||||
.FirstOrDefault();
|
||||
|
@ -30,7 +29,6 @@ public class QueueCategory : CategoryWithUser
|
|||
.Where(q => q.Slot.Type == SlotType.User && !q.Slot.Hidden && q.Slot.GameVersion <= GameVersion.LittleBigPlanet3)
|
||||
.OrderByDescending(q => q.QueuedLevelId)
|
||||
.Include(q => q.Slot.Creator)
|
||||
.Include(q => q.Slot.Location)
|
||||
.Select(q => q.Slot)
|
||||
.ByGameVersion(GameVersion.LittleBigPlanet3, false, false, true)
|
||||
.Skip(Math.Max(0, pageStart - 1))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using LBPUnion.ProjectLighthouse.Serialization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types.Users;
|
||||
|
||||
[Keyless]
|
||||
public class ClientsConnected
|
|
@ -1,6 +1,6 @@
|
|||
using System.Xml.Serialization;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types.Users;
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the game client to inform the server
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types.Users;
|
||||
|
||||
public class Pins
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
using System.Xml.Serialization;
|
||||
using LBPUnion.ProjectLighthouse.Serialization;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types.Users;
|
||||
|
||||
[XmlRoot("privacySettings")]
|
||||
[XmlType("privacySettings")]
|
|
@ -3,7 +3,7 @@ using System.Xml.Serialization;
|
|||
using LBPUnion.ProjectLighthouse.Types.Levels;
|
||||
using LBPUnion.ProjectLighthouse.Types.Misc;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types.Users;
|
||||
/// <summary>
|
||||
/// Used by the games to update details about a user's profile
|
||||
/// LBP1 only uses Location and IconHash
|
Loading…
Add table
Add a link
Reference in a new issue