private async void ApplyNpc(INpcBase?npc)
        {
            if (this.Actor == null || npc == null)
            {
                return;
            }

            CharacterFile apFile = npc.ToFile();
            await apFile.Apply(this.Actor, CharacterFile.SaveModes.All);
        }
Beispiel #2
0
        private async void ApplyNpc(INpcResident?npc)
        {
            if (this.Actor == null || npc == null)
            {
                return;
            }

            if (npc.Appearance == null)
            {
                return;
            }

            CharacterFile apFile = npc.Appearance.ToFile();
            await apFile.Apply(this.Actor, CharacterFile.SaveModes.All);
        }