Class RunPodProfile

Namespace
Unity.Multiplayer.Core

The RunPod hosting profile. RunPod pods appear to expose TCP/HTTP only, so the package runs WebSocket transport on a TCP port the pod maps to a public one; the server reads RunPod's RUNPOD_PUBLIC_IP and RUNPOD_TCP_PORT_* and registers the mapped address with a rendezvous service hosted elsewhere (ServerAdvertisement). UM-T18 checks RunPod's current UDP support.

public sealed class RunPodProfile : IHostingProfile
Inheritance
RunPodProfile
Implements
Inherited Members

Fields

NotesFileName

The notes file's name.

public const string NotesFileName = "HOSTING.txt"

Field Value

string

ProfileId

This profile's Id.

public const string ProfileId = "RunPod"

Field Value

string

Properties

BaseImage

The Docker base image; null for DefaultBaseImage.

public string BaseImage { get; set; }

Property Value

string

Description

One sentence: what host this suits.

public string Description { get; }

Property Value

string

DisplayName

A name for people (Generic VPS (Docker)).

public string DisplayName { get; }

Property Value

string

Id

A short, file-safe identifier (GenericVps), used in menus, the manifest and folder names.

public string Id { get; }

Property Value

string

Methods

ComposeNotes(ServerPackageSpec)

The HOSTING.txt text.

public static string ComposeNotes(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

Returns

string

Configure(ServerPackageSpec)

Adjusts the package's settings for this host before anything is written, such as forcing WebSocket. Called once by For(IHostingProfile, string, NetConfig, ServerSettings).

public void Configure(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

CreateFiles(ServerPackageSpec)

The profile's own files, added to the package after the common ones. None may share a path with them.

public IReadOnlyList<ServerPackageFile> CreateFiles(ServerPackageSpec spec)

Parameters

spec ServerPackageSpec

Returns

IReadOnlyList<ServerPackageFile>