Table of Contents

Class PlaceStructureRequested

Namespace
Uncreated.Warfare.Events.Models.Structures
Assembly
Uncreated.Warfare.dll

Event listener args which handles SDG.Unturned.StructureManager.onDamageStructureRequested.

[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_world" })]
public class PlaceStructureRequested : CancellableEvent, IPlaceBuildableRequestedEvent, ICancellable
Inheritance
PlaceStructureRequested
Implements
Inherited Members

Properties

Asset

Asset of the structure being placed.

public ItemStructureAsset Asset { get; }

Property Value

ItemStructureAsset

GroupOwner

The group that owns the structure's Steam ID, or Steamworks.CSteamID.Nil.

public required CSteamID GroupOwner { get; set; }

Property Value

CSteamID

Remarks

This can be changed.

OriginalPlacer

The player that initially tried to place the structure.

public required WarfarePlayer OriginalPlacer { get; init; }

Property Value

WarfarePlayer

Owner

The player that owns the structure's Steam ID, or Steamworks.CSteamID.Nil.

public required CSteamID Owner { get; set; }

Property Value

CSteamID

Remarks

This can be changed.

Position

The exact position of the structure.

public required Vector3 Position { get; set; }

Property Value

Vector3

Remarks

This can be changed.

Exceptions

ArgumentException

Position is not in a region.

Region

The region the structure will be placed in.

public required StructureRegion Region { get; init; }

Property Value

StructureRegion

RegionPosition

Coordinate of the structure region in SDG.Unturned.StructureManager.regions.

public required RegionCoord RegionPosition { get; init; }

Property Value

RegionCoord

Rotation

The exact rotation of the structure.

public required Quaternion Rotation { get; set; }

Property Value

Quaternion

Remarks

This can be changed.

Structure

Structure instantiation data.

public required Structure Structure { get; init; }

Property Value

Structure