Table of Contents

Struct EquippablePath

Namespace
S1API.Entities.Equippables
Assembly
S1API.dll

Type-safe wrapper for AvatarEquippable Resources paths. Use predefined static values (e.g. Phone_Lowered, Beer, Flashlight) or Custom(string) for mod-specific items.

public readonly struct EquippablePath
Inherited Members
Extension Methods

Remarks

Pass to schedule action builders:

Pass to prefab builder methods:

Strings are implicitly converted to EquippablePath, so raw string paths continue to work.

Fields

Baton

Baton (police).

public static readonly EquippablePath Baton

Field Value

EquippablePath

Beer

Beer bottle (drink).

public static readonly EquippablePath Beer

Field Value

EquippablePath

BrokenBottle

Broken bottle melee weapon.

public static readonly EquippablePath BrokenBottle

Field Value

EquippablePath

Coffee

Coffee cup (drink).

public static readonly EquippablePath Coffee

Field Value

EquippablePath

Cuke

Cuke energy drink.

public static readonly EquippablePath Cuke

Field Value

EquippablePath

EnergyDrink

Energy drink (ingredients).

public static readonly EquippablePath EnergyDrink

Field Value

EquippablePath

Flashlight

Flashlight tool.

public static readonly EquippablePath Flashlight

Field Value

EquippablePath

Hammer

Hammer tool.

public static readonly EquippablePath Hammer

Field Value

EquippablePath

Joint

Marijuana joint.

public static readonly EquippablePath Joint

Field Value

EquippablePath

Knife

Knife melee weapon.

public static readonly EquippablePath Knife

Field Value

EquippablePath

M1911

M1911 pistol.

public static readonly EquippablePath M1911

Field Value

EquippablePath

Phone_Lowered

Phone (lowered).

public static readonly EquippablePath Phone_Lowered

Field Value

EquippablePath

Phone_Raised

Phone (raised).

public static readonly EquippablePath Phone_Raised

Field Value

EquippablePath

Pipe

Smoking pipe.

public static readonly EquippablePath Pipe

Field Value

EquippablePath

PumpShotgun

Pump shotgun.

public static readonly EquippablePath PumpShotgun

Field Value

EquippablePath

Revolver

Revolver pistol.

public static readonly EquippablePath Revolver

Field Value

EquippablePath

SprayPaint

Spray paint (for EnsureGraffiti).

public static readonly EquippablePath SprayPaint

Field Value

EquippablePath

Taser

Taser weapon.

public static readonly EquippablePath Taser

Field Value

EquippablePath

TrashBag

Trash bag.

public static readonly EquippablePath TrashBag

Field Value

EquippablePath

TrashGrabber

Trash grabber tool.

public static readonly EquippablePath TrashGrabber

Field Value

EquippablePath

Trimmers

Trimmers tool.

public static readonly EquippablePath Trimmers

Field Value

EquippablePath

WateringCan

Watering can tool.

public static readonly EquippablePath WateringCan

Field Value

EquippablePath

Properties

ResourcePath

The Resources path (relative to Resources folder, no extension).

public string ResourcePath { get; }

Property Value

string

Methods

Custom(string)

Creates a path for a custom mod equippable.

public static EquippablePath Custom(string resourcePath)

Parameters

resourcePath string

Resources path (e.g. "MyMod/Items/MyItem").

Returns

EquippablePath

ToString()

Returns the Resources path.

public override string ToString()

Returns

string

Operators

implicit operator EquippablePath(string)

Implicit conversion from string for custom paths and existing constants (e.g. Beer).

public static implicit operator EquippablePath(string path)

Parameters

path string

Returns

EquippablePath