using System.Xml.Linq;
using Hacknet;
using Pathfinder.Util;
using Pathfinder.Util.XML;

namespace Pathfinder.Administrator;

public abstract class BaseAdministrator : Hacknet.Administrator
{
    protected Computer computer;
    protected OS opSystem;

    public BaseAdministrator(Computer computer, OS opSystem) : base()
    {
        this.computer = computer;
        this.opSystem = opSystem;
    }
        
    public virtual void LoadFromXml(ElementInfo info)
    {
        base.ResetsPassword = info.Attributes.GetBool("resetPass");
        base.IsSuper = info.Attributes.GetBool("isSuper");
            
        XMLStorageAttribute.ReadFromElement(info, this);
    }

    public virtual XElement GetSaveElement()
    {
        return XMLStorageAttribute.WriteToElement(this);
    }
}
using System.Xml.Linq;
using Hacknet;
using Pathfinder.Util;
using Pathfinder.Util.XML;

namespace Pathfinder.Administrator;

public abstract class BaseAdministrator : Hacknet.Administrator, IXmlName
{
    protected Computer computer;
    protected OS opSystem;

    public BaseAdministrator(Computer computer, OS opSystem) : base()
    {
        this.computer = computer;
        this.opSystem = opSystem;
    }
    
    public string XmlName => "admin";
        
    public virtual void LoadFromXml(ElementInfo info)
    {
        base.ResetsPassword = info.Attributes.GetBool("resetPass");
        base.IsSuper = info.Attributes.GetBool("isSuper");
            
        XMLStorageAttribute.ReadFromElement(info, this);
    }

    public virtual XElement GetSaveElement()
    {
        return XMLStorageAttribute.WriteToElement(this);
    }
}
Use correct element name for admins
Use correct element name for admins
