Toyblock

Latest version: v2.0.0

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.0.0

Added

- 'set' (component) to Entity
- property 'entities' to System
- System constructor raises TypeError if a callable is not passed
- pool property to Entity
- free() to Entity
- Check if a System is in Entity
- Private add_entity to Entity
- Pass systems to Pool to automatically add or remove an instance to them
when you get or release an instance.
- Pool.init decorator to be used along with Pool.get
- Pool.clean decorator to be used along with Entity.free
- Entity\[type_\] for component access. Less verbose than get_component().
- Pool.free_all

Changed

- System constructor raises a TypeError exception if a callable is not
passed.
- Pool accepts one list for variables args and another one for keywords args.
- Entity systems are stored in deque

Deprecated

- Pool.free(). Use Entity.free() instead.
- Entity.get_component(). Use Entity\[type_\] instead.

Removed

- Passing variable args to System constructor
- Systen.run()
- Entity get_component raises an error if belongs to a pool

Fix

- Missing string for exception EntityBelongsToPoolError

1.3.0

Added

- System instances are now callable.
- You pass variables arguments when you call to system instances.

Deprecated

- Assign variable arguments to System().
- System.run().

Fixed

- Avoid possible recursion when you call a System instance.

1.2.0

Added

- args and kwargs for instancing in Pool constructor
- New tests for Pool

1.1.0

Changed
- GPL license to LGPL license.
- Pool is not an experimental feature anymore.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.