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:
- WithItem(EquippablePath) — item to hold on arrival
- WithDrink(EquippablePath) — drink to use on arrival
Pass to prefab builder methods:
- EnsureItemHolding(EquippablePath) — prefab-level default held item
- EnsureDrinking(EquippablePath) — prefab-level default drink
- EnsureGraffiti(EquippablePath) — spray paint equippable
Strings are implicitly converted to EquippablePath, so raw string paths continue to work.
Fields
Baton
Baton (police).
public static readonly EquippablePath Baton
Field Value
Beer
Beer bottle (drink).
public static readonly EquippablePath Beer
Field Value
BrokenBottle
Broken bottle melee weapon.
public static readonly EquippablePath BrokenBottle
Field Value
Coffee
Coffee cup (drink).
public static readonly EquippablePath Coffee
Field Value
Cuke
Cuke energy drink.
public static readonly EquippablePath Cuke
Field Value
EnergyDrink
Energy drink (ingredients).
public static readonly EquippablePath EnergyDrink
Field Value
Flashlight
Flashlight tool.
public static readonly EquippablePath Flashlight
Field Value
Hammer
Hammer tool.
public static readonly EquippablePath Hammer
Field Value
Joint
Marijuana joint.
public static readonly EquippablePath Joint
Field Value
Knife
Knife melee weapon.
public static readonly EquippablePath Knife
Field Value
M1911
M1911 pistol.
public static readonly EquippablePath M1911
Field Value
Phone_Lowered
Phone (lowered).
public static readonly EquippablePath Phone_Lowered
Field Value
Phone_Raised
Phone (raised).
public static readonly EquippablePath Phone_Raised
Field Value
Pipe
Smoking pipe.
public static readonly EquippablePath Pipe
Field Value
PumpShotgun
Pump shotgun.
public static readonly EquippablePath PumpShotgun
Field Value
Revolver
Revolver pistol.
public static readonly EquippablePath Revolver
Field Value
SprayPaint
Spray paint (for EnsureGraffiti).
public static readonly EquippablePath SprayPaint
Field Value
Taser
Taser weapon.
public static readonly EquippablePath Taser
Field Value
TrashBag
Trash bag.
public static readonly EquippablePath TrashBag
Field Value
TrashGrabber
Trash grabber tool.
public static readonly EquippablePath TrashGrabber
Field Value
Trimmers
Trimmers tool.
public static readonly EquippablePath Trimmers
Field Value
WateringCan
Watering can tool.
public static readonly EquippablePath WateringCan
Field Value
Properties
ResourcePath
The Resources path (relative to Resources folder, no extension).
public string ResourcePath { get; }
Property Value
Methods
Custom(string)
Creates a path for a custom mod equippable.
public static EquippablePath Custom(string resourcePath)
Parameters
resourcePathstringResources path (e.g. "MyMod/Items/MyItem").
Returns
ToString()
Returns the Resources path.
public override string ToString()
Returns
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
pathstring