Table of Contents

Struct PrimitiveSettings

Namespace
Exiled.API.Structs
Assembly
Exiled.API.dll

Settings for primitives.

public struct PrimitiveSettings
Inherited Members
Extension Methods

Constructors

PrimitiveSettings(PrimitiveType, PrimitiveFlags, Color, Vector3, Vector3, Vector3, bool)

Initializes a new instance of the PrimitiveSettings struct.

public PrimitiveSettings(PrimitiveType primitiveType, PrimitiveFlags primitiveFlags, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn)

Parameters

primitiveType PrimitiveType

The type of the primitive.

primitiveFlags PrimitiveFlags

The flags of the primitive.

color Color

The color of the primitive.

position Vector3

The position of the primitive.

rotation Vector3

The rotation of the primitive.

scale Vector3

The scale of the primitive.

spawn bool

Whether the primitive should be spawned.

PrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, bool)

Initializes a new instance of the PrimitiveSettings struct.

public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn)

Parameters

primitiveType PrimitiveType

The type of the primitive.

color Color

The color of the primitive.

position Vector3

The position of the primitive.

rotation Vector3

The rotation of the primitive.

scale Vector3

The scale of the primitive.

spawn bool

Whether the primitive should be spawned.

PrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, bool, bool)

Initializes a new instance of the PrimitiveSettings struct.

public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn, bool isStatic)

Parameters

primitiveType PrimitiveType

The type of the primitive.

color Color

The color of the primitive.

position Vector3

The position of the primitive.

rotation Vector3

The rotation of the primitive.

scale Vector3

The scale of the primitive.

spawn bool

Whether the primitive should be spawned.

isStatic bool

Whether the primitive should be static.

Properties

Color

Gets the primitive color.

public readonly Color Color { get; }

Property Value

Color

Flags

Gets the primitive flags.

public readonly PrimitiveFlags Flags { get; }

Property Value

PrimitiveFlags

IsStatic

Gets a value indicating whether the primitive should be spawned.

public readonly bool IsStatic { get; }

Property Value

bool

Position

Gets the primitive position.

public readonly Vector3 Position { get; }

Property Value

Vector3

PrimitiveType

Gets the primitive type.

public readonly PrimitiveType PrimitiveType { get; }

Property Value

PrimitiveType

Rotation

Gets the primitive rotation.

public readonly Vector3 Rotation { get; }

Property Value

Vector3

Scale

Gets the primitive scale.

public readonly Vector3 Scale { get; }

Property Value

Vector3

Spawn

Gets a value indicating whether the primitive should be spawned.

public readonly bool Spawn { get; }

Property Value

bool