rework cache creation conditions
clean up some stuff revert pet clearing fix initial cache creation not happening without changes/redraws fix draw conditions when framework inactive
This commit is contained in:
@@ -15,6 +15,32 @@ public class CharacterData
|
||||
public string PetNamesData { get; set; } = string.Empty;
|
||||
public string MoodlesData { get; set; } = string.Empty;
|
||||
|
||||
public void SetFragment(ObjectKind kind, CharacterDataFragment? fragment)
|
||||
{
|
||||
if (kind == ObjectKind.Player)
|
||||
{
|
||||
var playerFragment = (fragment as CharacterDataFragmentPlayer);
|
||||
HeelsData = playerFragment?.HeelsData ?? string.Empty;
|
||||
HonorificData = playerFragment?.HonorificData ?? string.Empty;
|
||||
ManipulationString = playerFragment?.ManipulationString ?? string.Empty;
|
||||
MoodlesData = playerFragment?.MoodlesData ?? string.Empty;
|
||||
PetNamesData = playerFragment?.PetNamesData ?? string.Empty;
|
||||
}
|
||||
|
||||
if (fragment is null)
|
||||
{
|
||||
CustomizePlusScale.Remove(kind);
|
||||
FileReplacements.Remove(kind);
|
||||
GlamourerString.Remove(kind);
|
||||
}
|
||||
else
|
||||
{
|
||||
CustomizePlusScale[kind] = fragment.CustomizePlusScale;
|
||||
FileReplacements[kind] = fragment.FileReplacements;
|
||||
GlamourerString[kind] = fragment.GlamourerString;
|
||||
}
|
||||
}
|
||||
|
||||
public API.Data.CharacterData ToAPI()
|
||||
{
|
||||
Dictionary<ObjectKind, List<FileReplacementData>> fileReplacements =
|
||||
|
||||
Reference in New Issue
Block a user