Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions esper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def get_processor(processor_type: _Type[Processor]) -> _Optional[Processor]:
def create_entity(*components: _C) -> int:
"""Create a new Entity, with optional initial Components.

This funcion returns an Entity ID, which is a plain integer.
This function returns an Entity ID, which is a plain integer.
You can optionally pass one or more Component instances to be
assigned to the Entity on creation. Components can be also be
added later with the :py:func:`esper.add_component` funcion.
added later with the :py:func:`esper.add_component` function.
"""
entity = next(_entity_count)

Expand Down Expand Up @@ -447,7 +447,7 @@ def try_components(entity: int, __c1: _Type[_C], __c2: _Type[_C2], __c3: _Type[_


def try_components(entity: int, *component_types: _Type[_C]) -> _Optional[_Tuple[_C, ...]]:
"""Try to get a multiple component types for an Entity.
"""Try to get multiple component types for an Entity.

This function will return the requested Components if they exist,
or None if they do not. This allows a way to access optional Components
Expand Down
Loading