Changes to filters package and Entity classes

Official Announcements about Source.Python.
User avatar
satoon101
Project Leader
Posts: 2384
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.
Image
Mahi
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 2 guests