Ignore:
Timestamp:
09/06/13 00:03:16 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
32336138313763653038326665326235663934323937326131326438383638643239623834316533
Message:

Add means for listing levels and areas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r317 r321  
    5656            'enemies': self._enemies,
    5757        }, f)
     58
     59    @classmethod
     60    def list_levels(cls):
     61        with resources.get_file('levels', 'LEVELS') as f:
     62            levels = load(f)
     63            return levels['levels']
    5864
    5965    def load(self, space):
Note: See TracChangeset for help on using the changeset viewer.