Skip to main content

ContentAddons

The content addons connecting clients are told to download.

The active list is the server config's serverbrowser.content_addons merged with whatever every loaded plugin declares through IDeadworksPlugin.ContentAddons, de-duplicated and kept in that order. Declaring an addon from a plugin means it no longer has to be listed in the server config ahead of time - loading the plugin is enough.

public static class ContentAddons

Namespace: DeadworksManaged.Api
Source: ContentAddons.cs#L12

Properties​

ContentAddons.Active​

The merged addon list currently advertised to clients.

Signature

public static IReadOnlyList<string> Active { get; }

Source: ContentAddons.cs#L17

Methods​

ContentAddons.Refresh()​

Re-reads IDeadworksPlugin.ContentAddons from every loaded plugin and re-applies the merged list. Plugins are queried automatically when they load and unload, so this is only needed when a plugin's own list changes while it is running.

Signature

public static void Refresh()

Source: ContentAddons.cs#L24