Cleanup
This commit is contained in:
@@ -30,19 +30,10 @@ public sealed class Profile : ISavable
|
||||
|
||||
public List<Armature> Armatures = new();
|
||||
|
||||
/* [Obsolete("To be removed in the future versions")]
|
||||
public LowerString CharacterName { get; set; } = LowerString.Empty;*/
|
||||
|
||||
//public ActorIdentifier Character { get; set; } = ActorIdentifier.Invalid;
|
||||
public List<ActorIdentifier> Characters { get; set; } = new();
|
||||
|
||||
public LowerString Name { get; set; } = LowerString.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to search only through local player owned characters or all characters when searching for game object by name
|
||||
/// </summary>
|
||||
//public bool LimitLookupToOwnedObjects { get; set; } = false;
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
public DateTimeOffset CreationDate { get; set; } = DateTime.UtcNow;
|
||||
public DateTimeOffset ModifiedDate { get; set; } = DateTime.UtcNow;
|
||||
@@ -66,11 +57,6 @@ public sealed class Profile : ISavable
|
||||
/// </summary>
|
||||
public bool IsTemporary => ProfileType == ProfileType.Temporary;
|
||||
|
||||
/* /// <summary>
|
||||
/// Identificator specifying specific actor this profile applies to, only works for temporary profiles
|
||||
/// </summary>
|
||||
public ActorIdentifier TemporaryActor { get; set; } = ActorIdentifier.Invalid;*/
|
||||
|
||||
public string Incognito
|
||||
=> UniqueId.ToString()[..8];
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ public sealed class ProfileChanged() : EventWrapper<ProfileChanged.Type, Profile
|
||||
PriorityChanged,
|
||||
AddedCharacter,
|
||||
RemovedCharacter,
|
||||
//ChangedCharacter,
|
||||
AddedTemplate,
|
||||
RemovedTemplate,
|
||||
MovedTemplate,
|
||||
@@ -28,13 +27,7 @@ public sealed class ProfileChanged() : EventWrapper<ProfileChanged.Type, Profile
|
||||
ChangedDefaultProfile,
|
||||
ChangedDefaultLocalPlayerProfile,
|
||||
TemporaryProfileAdded,
|
||||
TemporaryProfileDeleted,
|
||||
/*
|
||||
ToggledProfile,
|
||||
AddedTemplate,
|
||||
RemovedTemplate,
|
||||
MovedTemplate,
|
||||
ChangedTemplate*/
|
||||
TemporaryProfileDeleted
|
||||
}
|
||||
|
||||
public enum Priority
|
||||
|
||||
@@ -373,12 +373,6 @@ public partial class ProfileManager : IDisposable
|
||||
if (!actor.Identifier(_actorManager, out var identifier))
|
||||
throw new ActorNotFoundException();
|
||||
|
||||
/* if (identifier.Type != IdentifierType.Player)
|
||||
{
|
||||
_logger.Warning($"Tried applying temporary profile to actor {identifier.Incognito(null)}. Temporary profiles can only be applied to players right now.");
|
||||
return; //do not return error code as I plan to eventually fix this
|
||||
}*/
|
||||
|
||||
profile.Enabled = true;
|
||||
profile.ProfileType = ProfileType.Temporary;
|
||||
profile.Priority = int.MaxValue; //Make sure temporary profile is always at max priority
|
||||
|
||||
Reference in New Issue
Block a user