From bc7dc3a71a81786201f04a6c98e79b21d58331f0 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 31 Aug 2020 12:03:06 -0500 Subject: [PATCH] Add XuidString and GuidString to EFClient to allow easier interfacing with mods --- SharedLibraryCore/PartialEntities/EFClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SharedLibraryCore/PartialEntities/EFClient.cs b/SharedLibraryCore/PartialEntities/EFClient.cs index fc259ef6e..0361c7bdf 100644 --- a/SharedLibraryCore/PartialEntities/EFClient.cs +++ b/SharedLibraryCore/PartialEntities/EFClient.cs @@ -656,6 +656,10 @@ namespace SharedLibraryCore.Database.Models public int Score { get; set; } [NotMapped] public bool IsBot => NetworkId == Name.GenerateGuidFromString(); + [NotMapped] + public string XuidString => (NetworkId + 0x110000100000000).ToString("x"); + [NotMapped] + public string GuidString => NetworkId.ToString("x"); [NotMapped] public ClientState State { get; set; }