Changes to filters package and Entity classes
Posted: Sun Nov 08, 2015 7:20 pm
We just updated the filters package, along with the Entity classes for a few reasons. We decided that each of the <type>Iter objects should only be iterating over the <type>. This means that there are no more return_types arguments or attributes when it comes to these classes.
Also involved in this change, we renamed the PlayerEntity and WeaponEntity classes to match their respective iteration classes. This included changing weapons.instance.Weapon to weapons.instance.WeaponClass to avoid matching class names. The following are now the iteration class names and their respective yield classes:
All of the classes still have the other arguments/attributes, only return_types were removed.
Also involved in this change, we renamed the PlayerEntity and WeaponEntity classes to match their respective iteration classes. This included changing weapons.instance.Weapon to weapons.instance.WeaponClass to avoid matching class names. The following are now the iteration class names and their respective yield classes:
- filters.entities.EntityIter -> entities.entity.Entity
- filters.players.PlayerIter -> players.entity.Player
- filters.weapons.WeaponIter -> weapons.entity.Weapon
- filters.weapons.WeaponClassIter -> weapons.instance.WeaponClass
All of the classes still have the other arguments/attributes, only return_types were removed.