Skip to main content
Version: 1.1.1

Struct LockChangeEvent

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

A lock was locked or unlocked. The result is the lock's state; a refused change puts the actor's game back to it. A server raise leaves the actor null and reaches any lock with Script.

[NetworkedEvent(EventScope.Server, Policy.SubjectOwner, Reject = typeof(LockChangeReject))]
public struct LockChangeEvent

Inherited Members​

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

Properties​

Actor​

[Subject]
public MainCharacter? Actor { readonly get; set; }

Property Value​

MainCharacter?

Code​

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

public RelayMessageCode Code { get; }

Property Value​

RelayMessageCode

IsLocked​

public bool IsLocked { readonly get; set; }

Property Value​

bool

Level​

public int Level { readonly get; set; }

Property Value​

int

RefId​

public uint RefId { readonly get; set; }

Property Value​

uint

Source​

public LockChangeSource Source { readonly get; set; }

Property Value​

LockChangeSource