Changes to filters package and Entity classes

Official Announcements about Source.Python.
User avatar
Project Leader
Posts: 2651
Joined: Sat Jul 07, 2012 1:59 am

Changes to filters package and Entity classes

Postby satoon101 » 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:

  • 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.
Senior Member
Posts: 213
Joined: Wed Aug 29, 2012 8:39 pm
Location: Finland

Postby Mahi » Sun Nov 08, 2015 7:53 pm

This is awesome! :) Nice update guys

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 1 guest