Created
February 3, 2014 05:03
-
-
Save wmiller/8779078 to your computer and use it in GitHub Desktop.
XML Database Example2 Infos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Xml; | |
using System.Xml.Serialization; | |
[XmlRoot] | |
public sealed class TileInfo : DatabaseEntry | |
{ | |
[XmlElement] | |
public int Height { get; private set; } | |
[XmlElement] | |
public int FeatureChance { get; private set; } | |
[XmlElement] | |
public string PrefabPath { get; private set; } | |
[XmlArray("PossibleFeatures")] | |
[XmlArrayItem("FeatureInfoRef")] | |
public DatabaseEntryRef<FeatureInfo>[] PossibleFeatures { get; private set; } | |
} | |
[XmlRoot] | |
public sealed class FeatureInfo : DatabaseEntry | |
{ | |
[XmlElement] | |
public string PrefabPath { get; private set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment