Created
February 4, 2014 13:55
-
-
Save wmiller/8803961 to your computer and use it in GitHub Desktop.
XML Database part 2 Infos.cs
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 DatabaseEntryRef<AssetInfo> PrefabInfoRef { get; private set; } | |
[XmlArray("PossibleFeatures")] | |
[XmlArrayItem("FeatureInfoRef")] | |
public DatabaseEntryRef<FeatureInfo>[] PossibleFeatures { get; private set; } | |
} | |
[XmlRoot] | |
public sealed class FeatureInfo : DatabaseEntry | |
{ | |
[XmlElement] | |
public DatabaseEntryRef<AssetInfo> PrefabInfoRef { get; private set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment