예제 #1
0
 public void Save(XmlTextWriter xmlInfo)
 {
     ((XmlWriter)xmlInfo).WriteStartElement("HoxCode");
     xmlInfo.WriteAttributeString("GroupID", StringType.FromInteger(this.m_GroupID));
     xmlInfo.WriteAttributeString("Alt", StringType.FromByte(this.m_AltitudeID));
     xmlInfo.WriteAttributeString("Terrain", StringType.FromByte(this.m_TerrainID));
     xmlInfo.WriteEndElement();
 }
예제 #2
0
 public void Save(XmlTextWriter xmlInfo)
 {
     xmlInfo.WriteStartElement("Altitude");
     xmlInfo.WriteAttributeString("Key", StringType.FromInteger(this.m_Key));
     xmlInfo.WriteAttributeString("Type", this.m_Type);
     xmlInfo.WriteAttributeString("Altitude", StringType.FromInteger(this.m_Alt));
     xmlInfo.WriteAttributeString("R", StringType.FromByte(this.m_AltColor.R));
     xmlInfo.WriteAttributeString("G", StringType.FromByte(this.m_AltColor.G));
     xmlInfo.WriteAttributeString("B", StringType.FromByte(this.m_AltColor.B));
     xmlInfo.WriteEndElement();
 }
예제 #3
0
 public void Save(XmlTextWriter xmlInfo)
 {
     ((XmlWriter)xmlInfo).WriteStartElement("Terrain");
     xmlInfo.WriteAttributeString("Name", this.m_Name);
     xmlInfo.WriteAttributeString("ID", StringType.FromInteger(this.m_GroupID));
     xmlInfo.WriteAttributeString("TileID", StringType.FromInteger((int)this.m_TileID));
     xmlInfo.WriteAttributeString("R", StringType.FromByte(this.m_Color.R));
     xmlInfo.WriteAttributeString("G", StringType.FromByte(this.m_Color.G));
     xmlInfo.WriteAttributeString("B", StringType.FromByte(this.m_Color.B));
     xmlInfo.WriteAttributeString("Base", StringType.FromByte(this.m_BaseAlt));
     xmlInfo.WriteAttributeString("Random", StringType.FromBoolean(this.m_RandAlt));
     xmlInfo.WriteEndElement();
 }
예제 #4
0
 public void FromByte(byte value, string expected)
 {
     Assert.Equal(expected, StringType.FromByte(value));
 }