Table of Contents

Class GraffitiManager

Namespace
S1API.Graffiti
Assembly
S1API.dll

Provides access to graffiti-related game systems and spray surfaces.

public static class GraffitiManager
Inheritance
GraffitiManager
Inherited Members

Properties

UntaggedSpraySurfaces

Gets all spray surfaces that have not been drawn on yet (no strokes).

public static List<SpraySurface> UntaggedSpraySurfaces { get; }

Property Value

List<SpraySurface>

Methods

FindNearestUntaggedSurface(Vector3?)

Finds the nearest untagged spray surface to a given position.

public static SpraySurface? FindNearestUntaggedSurface(Vector3? position)

Parameters

position Vector3

The position to search from.

Returns

SpraySurface

The nearest untagged spray surface, or null if none found.

FindNearestUntaggedSurface(Vector3?, Func<SpraySurface, bool>?)

Finds the nearest untagged spray surface to a given position using an additional filter.

public static SpraySurface? FindNearestUntaggedSurface(Vector3? position, Func<SpraySurface, bool>? include)

Parameters

position Vector3

The position to search from.

include Func<SpraySurface, bool>

An optional predicate used to keep eligible surfaces after the base untagged filter.

Returns

SpraySurface

The nearest matching spray surface, or null if none found.

GetAllSpraySurfaces()

Gets all world spray surfaces in the game.

public static List<SpraySurface> GetAllSpraySurfaces()

Returns

List<SpraySurface>

A list of all world spray surfaces, wrapped in S1API SpraySurface objects.

GetUntaggedSpraySurfaces()

Gets all spray surfaces that have not been drawn on yet (no strokes).

public static List<SpraySurface> GetUntaggedSpraySurfaces()

Returns

List<SpraySurface>

A list of untagged spray surfaces.