nmmo.core.realm module#
- class nmmo.core.realm.Realm(config)#
Bases:
object
Top-level world object
- entity(ent_id)#
- entity_or_none(ent_id)#
- log_milestone(category: str, value: float, message: Optional[str] = None, tags: Optional[Dict] = None)#
- property num_players#
Number of player agents
- packet()#
Client packet
- record_replay(replay_helper: ReplayHelper) ReplayHelper #
- reset(map_id: Optional[int] = None)#
Reset the environment and load the specified map
- Args:
idx: Map index to load
- step(actions)#
Run game logic for one tick
- Args:
actions: Dict of agent actions
- Returns:
dead: List of dead agents
- nmmo.core.realm.prioritized(entities: Dict, merged: Dict)#
Sort actions into merged according to priority