[Change] Use fleetgroups in resource editor, instead of fleets.

This commit is contained in:
Allanis 2014-10-26 18:54:37 +00:00
parent 72d88644b6
commit b5585bfa72
2 changed files with 4 additions and 4 deletions

View File

@ -5,12 +5,12 @@ import data
class Fleets:
def __init__(self):
self.fleets = {}
self.fleetsXML = "../../dat/fleet.xml"
self.fleetsXML = "../../dat/fleetgroup.xml"
def loadFleets(self, xmlfile=None):
if xmlfile == None:
xmlFile = self.fleetsXML
self.fleets = data.load(xmlfile, "fleet", True)
xmlfile = self.fleetsXML
self.fleets = data.load(xmlfile, "fleetgroup", True)
def data(self):
return self.fleets

View File

@ -19,7 +19,7 @@ factions.loadFactions(path+"faction.xml")
# Load the fleets.
fleets = fleet.Fleets()
fleets.loadFleets(path+"fleet.xml")
fleets.loadFleets(path+"fleetgroup.xml")
# Load the commodities.
commodities = commodity.Commodities()