gatelogue_aggregator.types.node.spawn_warp.SpawnWarp

class gatelogue_aggregator.types.node.spawn_warp.SpawnWarp(coordinates: Sourced[tuple[float, float]] | None=None, world: Sourced[World] | None = None, proximity: dict[~gatelogue_types.ID, ~gatelogue_types.Sourced[~gatelogue_types.Proximity]]=<factory>, shared_facility: list[Sourced[ID]] = <factory>, *, i: ID = None, source: set[str] = <factory>, name: str, warp_type: WarpType)

Bases: SpawnWarp, LocatedNode

__init__()

Methods

__init__()

acceptable_list_node_types()

acceptable_single_node_types()

connect(src, node[, value, source])

connect_one(src, node[, value, source])

disconnect(src, node)

equivalent(src, other)

export(src)

get_all(src, ty[, conn_ty])

get_all_id(src, ty[, conn_ty])

get_edge(src, node[, ty])

get_edges(src, node[, ty])

get_one(src, ty[, conn_ty])

get_one_id(src, ty[, conn_ty])

merge(src, other)

merge_attrs(src, other)

merge_if_equivalent(src, other)

merge_key(src)

merge_lists(src, self, other)

new(src, *, name, warp_type[, world, ...])

print_report(src, level, msg)

process_code(s)

ref(src)

report(src)

sanitise_strings()

str_src(src)

Attributes

coordinates

Coordinates of the object

i

The ID of the node

name

Name of the spawn warp

proximity

References all objects that are near (within walking distance of) this object.

shared_facility

References all objects that this object shares the same facility with (same building, station, hub etc)

source

All sources that prove the node's existence

warp_type

The type of warp

world

Whether the object is in the New or Old world

acceptable_list_node_types()
acceptable_single_node_types()
connect(src: Source, node: Node, value: Any | None = None, source: set[str] | None = None)
connect_one(src: Source, node: Node, value: Any | None = None, source: set[str] | None = None)
coordinates: Sourced[tuple[float, float]] | None

Coordinates of the object

disconnect(src: Source, node: Node)
equivalent(src: SpawnWarpSource, other: Self) bool
export(src: SpawnWarpSource) SpawnWarp
get_all(src: Source, ty: type[T], conn_ty: type | None = None) Iterator[T]
get_all_id(src: Source, ty: type[Node], conn_ty: type | None = None) list[Sourced[int]]
get_edge(src: Source, node: Node, ty: type[T] | None = None) Sourced[T] | None
get_edges(src: Source, node: Node, ty: type[T] | None = None) Iterator[Sourced[T]]
get_one(src: Source, ty: type[T], conn_ty: type | None = None) T | None
get_one_id(src: Source, ty: type[Node], conn_ty: type | None = None) Sourced[int] | None
i: ID

The ID of the node

merge(src: Source, other: Self)
merge_attrs(src: SpawnWarpSource, other: Self)
merge_if_equivalent(src: Source, other: Self) bool
merge_key(src: SpawnWarpSource) str
static merge_lists(src: Source, self: list[T], other: list[T])
name: str

Name of the spawn warp

classmethod new(src: SpawnWarpSource, *, name: str, warp_type: WarpType, world: World | None = None, coordinates: tuple[float, float] | None = None)
print_report(src: Source, level: str, msg: str)
static process_code(s: T) T
proximity: dict[ID, Sourced[Proximity]]

References all objects that are near (within walking distance of) this object. It is represented as an inner mapping of object IDs to proximity data (Proximity). For example, {1234: <proximity>} means that there is an object with ID 1234 near this object, and <proximity> is a Proximity object.

ref(src: SpawnWarpSource) NodeRef[Self]
report(src: Source)
sanitise_strings()
shared_facility: list[Sourced[ID]]

References all objects that this object shares the same facility with (same building, station, hub etc)

source: set[str]

All sources that prove the node’s existence

str_src(src: SpawnWarpSource) str
warp_type: WarpType

The type of warp

world: Sourced[World] | None

Whether the object is in the New or Old world