Skip to main content

ServersManager

A class in Root.Township, Alta.Meta.Servers.

Client meta tool that, on login, fetches the servers the player can control from the Alta API. Mostly a stub: the other handlers are empty.

Constructors​

MemberWhat it is
ServersManager()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private FriendsManager friendsManagerSerialized FriendsManager reference; not used in this class.
private List<IServerAccess> serversThe controllable servers from the last login.

Methods​

MemberWhat it is
async void SelectedServerChanged(IServerAccess server)Empty.
protected override async void LoggedIn()Fetches the player's controllable servers from the API and stores them in servers.
protected override void LoggedOut()Does nothing.