Ignore:
Timestamp:
Sep 7, 2013, 6:54:13 PM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
0fe1460c4601d3cd6f0b8fa3510903dbf93ee5bd
Message:

Add support for collectables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/collectable.py

    r385 r528  
    77                                  make_body)
    88from nagslang.resources import resources
     9
     10
     11def get_editable_game_objects():
     12    classes = []
     13    for cls_name, cls in globals().iteritems():
     14        if isinstance(cls, type) and hasattr(cls, 'requires'):
     15            classes.append((cls_name, cls))
     16    return classes
    917
    1018
Note: See TracChangeset for help on using the changeset viewer.