Exemplo n.º 1
0
 public Vegetation(string Name, string RTF, int MovementCost)
 {
     data = new VegetationData
     {
         Name         = Name,
         RTF          = RTF,
         MovementCost = MovementCost
     };
 }
Exemplo n.º 2
0
        private Vegetation(string Name)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(VegetationData));

            using (Stream file = File.OpenRead(SavePath + "\\" + Name + ".xml"))
            {
                data = (VegetationData)serializer.Deserialize(file);
            }
        }