Module nari.types.status
Types revolving around status effects
Expand source code
"""Types revolving around status effects"""
from typing import NamedTuple
class Status(NamedTuple):
"""Container for a status id with a name. Only really useful in ACT logs"""
status_id: int
status_name: str = ''
class StatusEffect(NamedTuple):
"""Container for status effects parameters"""
status_id: int
status_params: bytes
duration: float
source_actor_id: int
Classes
class Status (status_id: int, status_name: str = '')
-
Container for a status id with a name. Only really useful in ACT logs
Expand source code
class Status(NamedTuple): """Container for a status id with a name. Only really useful in ACT logs""" status_id: int status_name: str = ''
Ancestors
- builtins.tuple
Instance variables
var status_id : int
-
Alias for field number 0
var status_name : str
-
Alias for field number 1
class StatusEffect (status_id: int, status_params: bytes, duration: float, source_actor_id: int)
-
Container for status effects parameters
Expand source code
class StatusEffect(NamedTuple): """Container for status effects parameters""" status_id: int status_params: bytes duration: float source_actor_id: int
Ancestors
- builtins.tuple
Instance variables
var duration : float
-
Alias for field number 2
var source_actor_id : int
-
Alias for field number 3
var status_id : int
-
Alias for field number 0
var status_params : bytes
-
Alias for field number 1