Skip to content

MetadataChange

Record · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll

public sealed record MetadataChange(EntityId Entity, string Key, MetadataScope Scope, NetworkValue? OldValue, NetworkValue? NewValue)

One metadata write or removal. MetadataChange.NewValue is null for a removal.

public EntityId Entity { get; init; }
public string Key { get; init; }
public NetworkValue? NewValue { get; init; }
public NetworkValue? OldValue { get; init; }
public MetadataScope Scope { get; init; }