Table of Contents

Class EntityChangedEventArg

Namespace
RustPlusApi.Data.Events
Assembly
RustPlusApi.dll

Event argument raised for every EntityChanged broadcast, exposing the full raw payload before any device-type heuristic. The broadcast carries no entity type; consumers that know their paired entity ids should route on Id.

public sealed record EntityChangedEventArg : IEquatable<EntityChangedEventArg>
Inheritance
EntityChangedEventArg
Implements
Inherited Members

Properties

Capacity

Container capacity, or null when omitted (storage payloads only).

public int? Capacity { get; init; }

Property Value

int?

HasProtection

Tool-cupboard protection flag, or null when omitted.

public bool? HasProtection { get; init; }

Property Value

bool?

Id

Entity ID of the entity that changed.

public ulong Id { get; init; }

Property Value

ulong

Items

Items in the container; empty for binary-state payloads and for storage broadcasts that carry no contents snapshot.

public IEnumerable<StorageMonitorItemInfo> Items { get; init; }

Property Value

IEnumerable<StorageMonitorItemInfo>

ProtectionExpiry

UTC time when the tool-cupboard protection expires, or null when omitted.

public DateTime? ProtectionExpiry { get; init; }

Property Value

DateTime?

Value

Binary state (on / triggered), or null when omitted.

public bool? Value { get; init; }

Property Value

bool?