Table of Contents

Class DeadDropManager

Namespace
S1API.DeadDrops
Assembly
S1API.dll

Provides access to dead drops present in the scene.

public static class DeadDropManager
Inheritance
DeadDropManager
Inherited Members

Properties

All

All dead drops currently registered in the scene.

public static DeadDropInstance[] All { get; }

Property Value

DeadDropInstance[]

Empty

All dead drops that contain no items.

public static DeadDropInstance[] Empty { get; }

Property Value

DeadDropInstance[]

Methods

GetByGUID(string)

Gets a dead drop by its GUID.

public static DeadDropInstance? GetByGUID(string guid)

Parameters

guid string

The GUID string to look up.

Returns

DeadDropInstance

The dead drop instance if found; otherwise null.

GetClosest(Vector3, bool)

Gets the closest dead drop to a world position.

public static DeadDropInstance? GetClosest(Vector3 origin, bool mustBeEmpty = false)

Parameters

origin Vector3

World position to measure from.

mustBeEmpty bool

If true, only considers empty dead drops.

Returns

DeadDropInstance

The closest matching dead drop, or null if none exist.

GetGuid<T>()

Gets the stable native GUID declared by a typed dead-drop identifier.

public static string GetGuid<T>() where T : IDeadDropIdentifier

Returns

string

Type Parameters

T

GetRandomEmptyNear(Vector3)

Gets a random empty dead drop near a world position. Applies a light bias: avoids the absolute nearest, then chooses randomly among closer half.

public static DeadDropInstance? GetRandomEmptyNear(Vector3 origin)

Parameters

origin Vector3

World position to bias selection around.

Returns

DeadDropInstance

A random nearby empty dead drop, or null if none exist.

Get<T>()

Gets a dead drop through a type annotated with DeadDropGuidAttribute.

public static DeadDropInstance? Get<T>() where T : IDeadDropIdentifier

Returns

DeadDropInstance

Type Parameters

T