Table of Contents

Interface ISpawnable

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

An entity a server-side spawner creates and recycles: NPCs, world items, gathering nodes, containers.

public interface ISpawnable

Remarks

The spawner itself lives in the server assembly, so the entity holds it only as an ISpawnOwner. What the entity was spawned from is the spawner's bookkeeping, not the entity's, and is kept there.

Properties

ID

The unique identifier for this spawnable entity.

long ID { get; }

Property Value

long

NetworkObject

The network object associated with this entity for network synchronization.

NetworkObject NetworkObject { get; }

Property Value

NetworkObject

Spawner

The spawner that created this entity and schedules its respawn, or null when it was placed any other way.

ISpawnOwner Spawner { get; set; }

Property Value

ISpawnOwner

Methods

Despawn()

Despawns the entity, removing it from the game world and network.

void Despawn()