Skip to content

ResourceInfo

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

public sealed record ResourceInfo

A resource’s identity. ResourceInfo.Id is also its namespace: the owner part of every metadata key it writes and event it sends (id:name), and the name listed in AllowedResources.

public ResourceInfo(string id, string name, string version, IReadOnlyList<string>? dependencies = null, IReadOnlySet<string>? permissions = null);

Parameters

public IReadOnlyList<string> Dependencies { get; }
public string Id { get; }
public string Name { get; }
public IReadOnlySet<string> Permissions { get; }
public string Version { get; }
public static void Validate(ResourceInfo resource);

Parameters