public MapInfo(XmlElement iXml) { this.m_Name = iXml.GetAttribute("Name"); this.m_Num = ByteType.FromString(iXml.GetAttribute("Num")); this.m_XSize = IntegerType.FromString(iXml.GetAttribute("XSize")); this.m_YSize = IntegerType.FromString(iXml.GetAttribute("YSize")); }
public void FromString_ThrowsOverflowException(string value) { Assert.Throws <OverflowException>(() => ByteType.FromString(value)); }
public HashKey(string Key) { this.m_Key = ByteType.FromString("&H" + Key); }
public void FromString_ThrowsInvalidCastException(string value) { Assert.Throws <InvalidCastException>(() => ByteType.FromString(value)); }
public void FromString_NotSupported(string value, byte expected) { Assert.Throws <InvalidCastException>(() => ByteType.FromString(value)); }
public void FromString(string value, byte expected) { Assert.Equal(expected, ByteType.FromString(value)); }
public HashKey(string Key) { this.m_Key = ByteType.FromString(string.Concat("&H", Key)); }
public ClsDragon(XmlElement xmlInfo) { this.m_GroupID = IntegerType.FromString("&H" + xmlInfo.GetAttribute("GroupID")); this.m_TerrainID = ByteType.FromString("&H" + xmlInfo.GetAttribute("Terrain")); this.m_AltitudeID = ByteType.FromString("&H" + xmlInfo.GetAttribute("Alt")); }