跳到主要内容
版本:Next

Struct PlacementChangeEvent

Namespace: OblivionMP.SDK.Common.Events
Assembly: OblivionMP.SDK.Common.dll

A script moved a ref within its cell, as the block's owner reports it. The result is the ref's transform.

[NetworkedEvent(EventScope.Server, Policy.Anyone, Reject = typeof(PlacementChangeReject))]
public struct PlacementChangeEvent

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties​

Cell​

public FullCellId Cell { readonly get; set; }

Property Value​

FullCellId

Code​

This event's code on the wire, once the host has placed its mod's block.

public RelayMessageCode Code { get; }

Property Value​

RelayMessageCode

Position​

public Vector3 Position { readonly get; set; }

Property Value​

Vector3

RefId​

public uint RefId { readonly get; set; }

Property Value​

uint

Rotation​

public float Rotation { readonly get; set; }

Property Value​

float