﻿using DotNEET.Xml;
using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace OverallUsageSample
{
    [Serializable]
    public class Character : XmlEntity
    {
        [XmlElement("Name")]
        public string Name;

        [XmlArray("Perks"), XmlArrayItem(typeof(string), ElementName = "Perk")]
        public List<string> Perks;

        public Character()
        {
            this.Perks = new List<string>();
        }

        public override Guid Id
        {
            get;
            set;
        }
    }
}