Table of Contents

Interface ISpawnable

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

Interface for spawnable entities managed by an ObjectSpawner. Provides access to spawner, settings, network object, unique ID, and despawn logic.

public interface ISpawnable

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

ObjectSpawner

The ObjectSpawner responsible for spawning and managing this entity.

ObjectSpawner ObjectSpawner { get; set; }

Property Value

ObjectSpawner

SpawnableSettings

The settings used to configure this spawnable entity.

SpawnableSettings SpawnableSettings { get; set; }

Property Value

SpawnableSettings

Methods

Despawn()

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

void Despawn()