2 major changes
Posted: Wed Mar 20, 2013 1:34 am
Just wanted to let everyone know of 2 major changes that were just committed to the repository. First, the listeners package, which was created with the thinking that other "listeners" would at some point be added to the package, was renamed to "tick". So, the following file changes were made:
The second change is to the BaseEntity system. There are only 2 BaseEntity classes now, BaseEntity itself and PlayerEntity. All of the other classes have been removed. Now, when you use BaseEntity, you will need to pass the baseclasses (the entity names) to make sure the ini files are used that you wish to use. The onus will now be on the scripters to make sure that they have an index of the correct type of entity and include the proper baseclass names to use for their entity. PlayerEntity does all of that work for you and just adds "player" and "entity" to a frozenset (a set object that cannot be added to or have items removed from). BaseEntity uses a set() object that you can also add and remove items from at your discretion, though it is advised to instead add them as arguments when getting the instance.
I will be moving the listeners wiki pages tonight and working on the BaseEntity and PlayerEntity pages as well.
Satoon
- listeners.__init__ -> tick.__init__
- listeners.delays -> tick.delays
- listeners.repeat -> tick.repeat
- listeners.tick -> tick.listeners
The second change is to the BaseEntity system. There are only 2 BaseEntity classes now, BaseEntity itself and PlayerEntity. All of the other classes have been removed. Now, when you use BaseEntity, you will need to pass the baseclasses (the entity names) to make sure the ini files are used that you wish to use. The onus will now be on the scripters to make sure that they have an index of the correct type of entity and include the proper baseclass names to use for their entity. PlayerEntity does all of that work for you and just adds "player" and "entity" to a frozenset (a set object that cannot be added to or have items removed from). BaseEntity uses a set() object that you can also add and remove items from at your discretion, though it is advised to instead add them as arguments when getting the instance.
I will be moving the listeners wiki pages tonight and working on the BaseEntity and PlayerEntity pages as well.
Satoon