public void Visit(BuildingList list) { if (BuildingListVisitor != null) { list.Accept(BuildingListVisitor); } }
/// <summary> /// Creates a new empty. PlayerComponent /// </summary> public PlayerComponent() { PlayerResources resources = new PlayerResources(); AddChild(resources); unitList = new UnitList(); AddChild(unitList); buildingList = new BuildingList(); AddChild(buildingList); enemyList = new List<PlayerComponent>(); }
/// <summary> /// Creates a new empty. PlayerComponent /// </summary> public PlayerComponent() { PlayerResources resources = new PlayerResources(); AddChild(resources); unitList = new UnitList(); AddChild(unitList); buildingList = new BuildingList(); AddChild(buildingList); enemyList = new List <PlayerComponent>(); }
public void Visit(BuildingList list) { output.WriteStartElement("BuildingList"); VisitChildren(list); output.WriteEndElement(); }
public virtual void Visit(BuildingList list) { Visit((ModelComponent)list); }
public void Visit(BuildingList list) { if (BuildingListVisitor != null) list.Accept(BuildingListVisitor); }