Пример #1
0
 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"));
 }
Пример #2
0
 public void FromString_ThrowsOverflowException(string value)
 {
     Assert.Throws <OverflowException>(() => ByteType.FromString(value));
 }
Пример #3
0
 public HashKey(string Key)
 {
     this.m_Key = ByteType.FromString("&H" + Key);
 }
Пример #4
0
 public void FromString_ThrowsInvalidCastException(string value)
 {
     Assert.Throws <InvalidCastException>(() => ByteType.FromString(value));
 }
Пример #5
0
 public void FromString_NotSupported(string value, byte expected)
 {
     Assert.Throws <InvalidCastException>(() => ByteType.FromString(value));
 }
Пример #6
0
 public void FromString(string value, byte expected)
 {
     Assert.Equal(expected, ByteType.FromString(value));
 }
Пример #7
0
 public HashKey(string Key)
 {
     this.m_Key = ByteType.FromString(string.Concat("&H", Key));
 }
Пример #8
0
 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"));
 }