Changeset 528:811481b20689 for nagslang


Ignore:
Timestamp:
09/07/13 18:54:13 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
30666531343630633436303164336364366630623866613335313039303364626639336565356264
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.