Exemplo n.º 1
0
 public void RemoveChild(ChildDistSpawner child)
 {
     if (m_Children.Contains(child))
     {
         m_Children.Remove(child);
     }
 }
Exemplo n.º 2
0
 public void AddChild(ChildDistSpawner child)
 {
     if (!m_Children.Contains(child))
     {
         m_Children.Add(child);
     }
 }
Exemplo n.º 3
0
		public void AddChild( ChildDistSpawner child )
		{
			if ( !m_Children.Contains( child ) )
				m_Children.Add( child );
		}
Exemplo n.º 4
0
		public void RemoveChild( ChildDistSpawner child )
		{
			if ( m_Children.Contains( child ) )
				m_Children.Remove( child );
		}
Exemplo n.º 5
0
		public static void WriteChildDistSpawner( XmlTextWriter xml, ChildDistSpawner child )
		{
			xml.WriteStartElement( "Child" );

			xml.WriteStartElement( "Location" );
			xml.WriteString( child.Location.ToString() );
			xml.WriteEndElement();

			xml.WriteStartElement( "Map" );
			xml.WriteString( child.Map.ToString() );
			xml.WriteEndElement();

			if ( child.HomeRange > 0 )
			{
				xml.WriteStartElement( "HomeRange" );
				xml.WriteString( child.HomeRange.ToString() );
				xml.WriteEndElement();
			}

			if ( child.WalkingRange > 0 )
			{
				xml.WriteStartElement( "WalkingRange" );
				xml.WriteString( child.WalkingRange.ToString() );
				xml.WriteEndElement();
			}

			if ( child.WayPoint != null )
			{
				xml.WriteStartElement( "WayPoint" );
				xml.WriteString( child.WayPoint.Serial.ToString() );
				xml.WriteEndElement();
			}

			xml.WriteEndElement(); // Child
		}