Skip to main content

Networking and servers

Types in Alta.Networking and the other server, streaming and voice namespaces of Root.Township. 201 types, 31 with a hand-written page.

See the overview for what the columns mean and how this list is made.

Alta.Meta.Servers​

TypeKindBasePublic membersDocumented in, or what it is
ServersManagerclassLoggedInTool1Client meta tool that, on login, fetches the servers the player can control from the Alta API. Mostly a stub: the other handlers are empty.

Alta.Networking​

TypeKindBasePublic membersDocumented in, or what it is
AccumulativeAverageCountclass5A counter that keeps a running average of how many times something happened per period. Used for networking stats such as per-type serialize counts.
AccumulativeAverageNumberclass5Profiling helper: adds up numbers over one period, then records the total into a running average. EntitySerializer uses two of these for prepare and serialization time.
BaseSyncabstract class1Base of the MethodSync family. Registers a handler for one entity message type and sends that message to everyone in the entity's chunks.
ChunksChangeddelegate0Callback for a change of chunks: the chunks that were left and the chunk that was joined.
ClientOnlyclassMonoBehaviour, IBuildRendererPostBake, IBuildBakeable0Entity sync: Alta.Networking.ClientOnly is a component that lists behaviours to switch off on a real server (renderers, audio, effects) and on everywhere else. It runs in Awake.
ClientPacketReceiverclassIPacketReceiver, IPacketProcessor2The client's packet receiver: creates or approves the server connection when the transport approves it, and passes incoming packets to that connection. Created by Socket on the client.
ClientSpawnManagerclassSpawnManager5Spawning
ClientSyncclassBaseSync, ISync8The client side ISync that SyncFactory.Create makes when not on the server. Only the client read and write handlers are kept; the server calls do nothing.
ConfirmJoinMessageinternal struct8Internal message the server sends back to a client's join request: allowed or not, whether prerequisites are running, a join result and an error text. Server writes, client reads.
ConnectionclassIConnection30Sockets and connections: One per peer. On a server, a player's is player.ConnectionToRemotePlayer.
ConnectionChannelclassScriptableObject7Sockets and connections: The channels come from GlobalSettings<NetworkingSettings>.Instance.Channels; each connection has one outgoing queue per channel.
ConnectionChannel.CreateclassAltaMenuItemBase.Assets.Create.Township.Networking.ScriptableObject<ConnectionChannel>0Editor menu item for creating a ConnectionChannel asset.
ConnectionEventHandlerdelegate0Handler for events about a network Connection, such as a player connecting or disconnecting.
ControlledWriteSyncclass3An entity message channel where each send passes its own write method, unlike MethodSync which uses a fixed one. Registers the read handler when created.
DestroyableStaticObjectclassModifiableStaticObject0Static objects: Alta.Networking.DestroyableStaticObject derives from ModifiableStaticObject and adds health. On the server it listens to its ImpactDetectors.
DestroyMessagestatic class2The network message that tells clients to destroy or unload an entity. Static fields hold one message's data between Set and Serialize.
EntityDespawnedHandlerdelegate0Handler for an entity being removed by the scene, with isUnload telling whether it was unloaded rather than destroyed. Used by NetworkEntity.DestroyedByScene.
EntityMessageHandlerclass7Entity sync: If an entity message arrives on a client before that entity has spawned there, the game keeps a copy and handles it when it spawns (Spawner.WaitForSpawn).
EntityMessageTypeenum120Entity sync: Alta.Networking.EntityMessageType is written as 8 bits, so 0 to 255.
EntitySerializationMessagestatic class2Network message that carries an entity's full serialized data (its EntitySerializer).
EntitySerializerclass19Writes and reads an entity's streamed state: the combined bits of all its INetworkSerialized behaviours. The side that owns the state writes it when something changed and resends it a limited number of times. Get it from NetworkEntity.Serializer.
EntitySpawnedHandlerdelegate0Callback given a NetworkEntity once it has spawned. Used with WaitForSpawn to act on an entity as soon as it exists on the client.
EntityStreamerDataclass3An EntitySerializer's last written state data for one entity.
EntitySyncMessagestatic class2Network message that syncs a scene entity's identifier, embedded id and, for prefabs, the identifiers of its embedded entities. On read the scene manager matches them up.
ExampleBehaviourclass0Example code showing how to set up syncs with SyncFactory. Not a component and not used by the game.
FakeSocketclassISocket, IDisposable20A do-nothing socket for running without a network. Sends report success and go nowhere; most other calls log an error.
GeneralGameEventsstatic class6Static events for when a client connects to a server and when a server starts or ends. Exceptions from handlers are logged, not thrown.
GeneratedNetworkEntityBehaviourabstract classNetworkEntityBehaviour1Base for an entity behaviour that builds its content procedurally when it first spawns on the server, rather than loading it.
IChunkedEntityinterface2What Chunker needs from the object it tracks. NetworkEntity is the only implementation.
ICustomTypeReplaceinterfaceIEntityReplaceHandler1An IEntityReplaceHandler that names which component type to look for on the new entity when NetworkEntity.ReplaceWith runs, instead of its own type.
IEntityReplaceHandlerinterface2A component that carries its state over when its entity is replaced by another (for example an item turning into its cooked version).
IEntitySerializedinterface1Something that has an EntitySerializer for its full network data. Implemented by NetworkEntity.
INetworkEntityinterface13The core of a networked entity as seen by the networking code. NetworkEntity implements it.
INetworkEntityBehaviourinterface5Implement on a component of a NetworkEntity prefab to get the entity's network lifecycle calls (initialise, server spawn, player connect and disconnect).
INetworkSceneinterface15The networked scene: the spawner, the special chunks and a few server settings everyone can read. NetworkSceneManager.Current is the one in use.
INetworkSceneInternalinterfaceINetworkScene, IEntityManager8Internal side of the network scene used by the networking code: connections, the scene serializer and forced entity registration. NetworkScene implements it; get it from NetworkSceneManager.CurrentInternal.
INetworkSerializedinterface5Implement on a component of a NetworkEntity to have its state sent by the entity's serializer on each sync. The owning side writes, others read.
InternalMessagestatic class3Network message for an entity's own message types (EntityMessageType), used by syncs to send data to an entity's handler on the other side.
IPacketReceiverinterface1Something that pulls incoming packets off the transport each frame. ServerPacketReceiver and ClientPacketReceiver implement it, and Socket holds one.
ISerializeChildreninterface7Passed to ISavable load and save methods so a component can save and restore the child prefabs spawned under its entity.
ISocketinterfaceIDisposable17The game's network socket: owns the list of Connections and sends messages over the transport. The live one is Socket.Current (a FakeSocket when offline); on a server it holds one connection per player.
ISyncinterface8Fluent helper for one entity message type, with separate server and client read and write methods. Made by SyncFactory.Create; only ExampleBehaviour uses it in this build. The server and client versions ignore the other side's methods.
JoinedServerInfoclass9Joining a server, Server settings: The server you're on: static Current, Identifier, Name, ConnectionInfo, IsLocalServer (id -1). Set on the client at the first acceptance.
MessageTypeenum23Connection messages: Free below 32: 3, 5, 8, 14, 16, 19, 27, 31.
MethodSyncclassSync2Entity sync: These wrap a type and a handler, register the handler on the entity in their constructor, and give you SendToChunks and SendToPlayer. All in Alta.Networking:
MethodSyncClass<T>classSync<T>2An entity network method whose handler gets a class instance to read into or write from, as well as the stream. It can make a fresh instance when reading.
MethodSyncStruct<T>classSync<T>2A Sync for struct values that hands the read or write to a method you pass in. Optionally resets the value to a new struct before each read.
ModifiableStaticEventclassAltaEvent<ModifiableStaticObject, ModifiableStaticUnityEvent>0A serializable event that passes a ModifiableStaticObject, wired up in the inspector.
ModifiableStaticManagerclassNetworkEntityBehaviour, ISavable<ModifiableStaticManagerSaveData>, ISavableSave<ModifiableStaticManagerSaveData>, +1 more11Tracks which static (baked) scene objects have been modified, such as buildings finished by a RepairBox, by hash. A single instance on the server saves and syncs the map to every client.
ModifiableStaticManagerSaveDatainternal classNewSaveData<ModifiableStaticManager, ModifiableStaticManagerSaveData>1Save data for ModifiableStaticManager: which static objects (by hash) are modified.
ModifiableStaticObjectclassMonoBehaviour, IChangeWithChunking, IIgnoreForStaticFlatten, +2 more5Part of the static world that can be swapped between an original and a modified look (a cleared rock, opened passage and so on). Its state comes from ModifiableStaticManager by hash.
ModifiableStaticUnityEventclassUnityEvent<ModifiableStaticObject>0A serializable UnityEvent that passes a ModifiableStaticObject.
ModificationArgumentsstruct4Message payload ModifiableStaticManager sends to chunks when a static scene object's modified state changes: the object's hash and whether it is modified.
MoveMessagestatic class2Network message that sets an entity's position and rotation on clients.
NetworkAxisPositionclassNetworkAxisValue0A NetworkAxisValue that syncs a transform's local position along one axis, between a minimum and maximum.
NetworkAxisRotationclassNetworkAxisValue1A NetworkAxisValue that syncs a rotation around one local axis, in degrees from 0 to 360, with wrap-around.
NetworkAxisValueabstract classNetworkEntityBehaviour, INetworkSerialized7Base for a networked value along one axis (a slider, lever or hinge position). The server sends it compressed in a range; clients lerp to it, or snap when it's far off.
NetworkColliderGroupclassColliderGroup, INetworkEntityBehaviour6A ColliderGroup on a network entity that syncs whether its colliders are on and which other entities it ignores collision with. The server sets them; clients follow.
NetworkEntityclassMonoBehaviour, IChunkedEntity, IEntitySerialized, +1 more70NetworkEntity: Runs on server and clients.
NetworkEntity.SyncPriorityModifiersenum1Flags on NetworkEntity.CurrentPriorityModifiers that change sync priority. DockedOrInteracted is set while a pickup is docked or an interactable is in use.
NetworkEntityBehaviourabstract classMonoBehaviour, INetworkEntityBehaviour5Entity sync: The base class for networked components. Entity gets the NetworkEntity. Overridable:
NetworkEntityComponentControllerclassMonoBehaviour, IInitializeAsLocalPlayer, IInitializeAsRemotePlayer0Turns lists of components on or off depending on whether this is the server or a client, and whether the player entity is the local player or a remote one.
NetworkEntityHandlerdelegate0Callback that takes a NetworkEntity. Used by events such as Cookable.SwappedToCookedVersion and an entity's InitializationFinished.
NetworkEntityLinkclass21One slot in the entity manager's fixed table of 100,000 entity identifiers. On the server, slots are also chained into linked lists of empty, full and serialized slots so free identifiers and synced entities can be walked quickly.
NetworkEntityParentclassMonoBehaviour4Base of NetworkPrefab and NetworkScene. Holds the list of child network entities embedded in it, and gives each an EmbeddedId equal to its index.
NetworkGravityclassNetworkEntityBehaviour5Replaces Unity gravity on a rigidbody with a ConstantForce, so gravity and drag can be changed per object and synced to clients.
NetworkHash128struct20A 128-bit ID stored as 16 bytes, written and read as a 32 character hex string.
NetworkingSettingsclassGlobalSettings<NetworkingSettings>13Global networking settings: transport (KCP) settings, channels and send and receive limits.
NetworkingSettings.CreateclassAltaMenuItemBase.Assets.Create.Global_Settings.ScriptableObject<NetworkingSettings>0Editor menu item for creating a NetworkingSettings asset.
NetworkManagerstatic class21Sockets and connections, Update modules
NetworkPrefabclassNetworkEntityParent, INetworkEntityBehaviour, ISerializeChildren25Prefabs and prefab hashes, Arguments and results: A MonoBehaviour next to the prefab's NetworkEntity.
NetworkPrefab.ChildPrefabclass3Pairs a child network prefab with the entity it sits under, for saving and spawning nested prefabs.
NetworkPrefabChildEventHandlerdelegate0Callback for when a saved child of a prefab has spawned, given the child prefab, its parent entity and the child index. Used with ISerializeChildren.GetSpawnedChildren.
NetworkPrefabConverterclassTypeConverter2Type converter that turns a string (a prefab hash or name) into a NetworkPrefab, for console command arguments.
NetworkPrefabEventHandlerdelegate0Callback with a NetworkPrefab, used by NetworkPrefab.PreDestroyed.
NetworkRigidbodyclassNetworkEntityBehaviour, INetworkSerialized, ISavableFull<NetworkRigidbodySaveData>, +6 more21Syncs a physics object's position, rotation, velocity, kinematic and sleep state from the server to clients, and saves them. On clients it eases the local rigidbody towards the server's values and sleeps it when updates stop. On almost every physics prefab.
NetworkRigidbodySaveDatainternal classNewSaveData<NetworkRigidbody, NetworkRigidbodySaveData>6Save data for a NetworkRigidbody: its transform, motion and sleep state.
NetworkRotationclassNetworkEntityBehaviour3Syncs an interactable's local rotation around one axis (for example a wheel or handle a player turns). The turning player's client sends the angle when the interaction ends; others lerp to it.
NetworkSceneclassNetworkEntityParent, INetworkSceneInternal, INetworkScene, +1 more22The networked scene: holds the entity manager, global and void chunks, the spawner and the connections, and sends entity sync each frame. One per loaded scene, reached through NetworkSceneManager.Current.
NetworkSerializedProfilerstatic class3Collects the shared serialize timers of every INetworkSerialized type marked with ProfileNetworkSerializedAttribute, for performance stats.
NetworkTransformclassNetworkEntityBehaviour, INetworkSerialized, IInitializeAsLocalPlayer8Syncs a transform's local position, rotation and optional scale from the authoritative side. Remote copies lerp toward it each fixed update, or snap when far off.
PacketSentHandlerdelegate0Callback for Connection.PacketSent, with the connection, the bytes sent, their count, the channel and the transport result.
ParentChangedHandlerdelegate0Callback for when a network entity's parent changes, with the entity, its old parent and its new parent.
PhysicsSerializationSettingsstatic class10Limits and precision used when packing physics values (velocity, angular velocity, scale) into network messages.
PingMessagestatic class6The ping network message. The client sends a timestamp, the server echoes it back, and the client works out the round trip time.
PlayerComponentControllerclassMonoBehaviour, IInitializeAsLocalPlayer0Turns lists of components on or off for a player entity: server-only, client-only, and local player versus remote player. Starts every player as remote until it becomes the local player.
PositionSyncBlockerenum1Flags for why an entity's position sync is paused, passed to LockPositionSync and UnlockPositionSync on its prefab. The only reason is Docked, set while a pickup sits in a dock.
PrefabManagerstatic class5Prefabs and prefab hashes: It loads every NetworkPrefab under Resources/Network Prefabs the first time anything asks, into a private Dictionary<uint, NetworkPrefab>.
PrefabNameMapclassGlobalSettings<PrefabNameMap>, ISerializationCallbackReceiver1Global settings asset that maps prefab hashes to their asset paths. Get it with PrefabNameMap.Instance.
ProfileNetworkSerializedAttributeclassAttribute0Marks an INetworkSerialized type so NetworkSerializedProfiler picks up its static serializeTimer and prepareForWriteTimer fields.
RecreateArgumentModeenum3When a MethodSyncClass makes a new argument object while reading a message: only if its value is null, always, or never (reuse the existing one).
ReplaceAvoidFlagsenum8Flags for what to leave alone when one entity replaces another (for example CraftingPart and Fire check them): position, relation, internal state, charge, stats, health or chunk.
RequestJoinMessageinternal class8The message a client sends to ask to join a server: player id, credentials, player mode, platform and game version. Built by JoinServerPipeline and read by the server's connection handler.
RequestServerDiagnosticsMessagestatic class2Message a client sends to turn server diagnostics on or off for itself.
SceneEntityMessagestatic class4Writes or reads which entity a message is about, by identifier. Other messages such as MoveMessage and DestroyMessage start with it.
SceneSerializationMessageclass1Receives scene serialization data and passes it to the current network scene's scene serializer.
SerializeConnectionMethoddelegate0A method that writes (or reads) a message body for one connection on a stream. Passed to Connection and OutgoingPacketManager send methods.
SerializedEntityHandlerdelegate0Handler for the EntitySerializer.WroteEntity and ReadEntity events, given the serializer, the entity and its raw serialized bits.
SerializeMethoddelegate0Handler for a network message: gets the sending or receiving player and the stream, and both reads and writes the message with the same calls. The generic version also gets a typed argument.
SerializeMethod<T>delegate0Callback that reads or writes data for one player on a stream, with an extra argument of type T. A non-generic version without the argument sits in the same file.
ServerDiagnosticsMessagestatic class5Message the server sends to clients that asked for diagnostics: its frame rate and a text message.
ServerMessageReceiverPerConnectionclass5Server: per-connection receiver that holds incoming unreliable packets until the frame's processing step and handles connect and disconnect events. Made by ServerPacketReceiver.
ServerPacketReceiverclassIPacketReceiver, IPacketProcessor8The server's packet receiver. Each frame it takes packets from the transport, handles unreliable ones per connection, then handles buffered reliable ones, and records timing stats. Server only.
ServerSpawnManagerclassSpawnManager6Spawning
ServerSyncclassBaseSync, ISync8The server side ISync that SyncFactory.Create makes on the server. Keeps the server read and write handlers and can limit incoming messages to one owner player.
SocketclassISocket, IDisposable22Sockets and connections: Get the current one from Socket.Current (a static ISocket, the last socket made).
SocketEventHandlerdelegate0Callback that receives an ISocket, for socket events.
SpawnIndexclass4Per-entity counter that orders spawns and despawns, so clients drop destroy messages that are older than the entity's latest spawn.
SpawnManagerabstract class13Spawning: Get it from NetworkSceneManager.Current.Spawner, entity.Spawner or SpawnHelper.Manager.
SpawnMessagestatic class2The network message that spawns a prefab on clients: prefab hash, entity and embedded ids, spawn index, and optionally chunk, position, rotation and scale.
StaticChangeEventdelegate0Callback for ModifiableStaticManager.ObjectChanged, with a static object's hash and whether it is now modified.
StaticPlatformSupportclassNetworkEntityBehaviour2Network behaviour meant to sync a placed object's position through a PositionSerializer with a movement context. Not used anywhere, and its serializer is never created, so it would probably throw if used.
StreamAuthorityHelperstatic class2Checks whether a connection may send data for an entity, and logs when it may not.
StreamEntityExtensionsstatic class7Extension methods on Stream for checking which side is reading or writing, and for sending entities, entity ids and chunks.
StreamMethoddelegate0A method that reads or writes something on a serialization stream. Used as the handler for Sync and MethodSync.
Syncabstract class5Base for an entity sync with one handler method that both writes and reads. Registers the handler with the entity's message handler for one message type.
Sync<T>abstract class5Base for an entity sync that sends a value of type T. Registers its handler with the entity's message handler for one message type.
SyncFactorystatic class1Makes the right ISync for the side you are on.
TemporaryUint256static class1A shared scratch array of 256 uints, used by spawn and sync messages to hold embedded entity ids.
ThrottledMethodSyncclass3Wraps an entity message so it is sent at most once per set interval; extra sends inside the interval are dropped, not delayed.
TransportSystemenum1Which network transport to use. KCP is the only option and the default.

Alta.Networking.Animation​

TypeKindBasePublic membersDocumented in, or what it is
AnimatedBoolclassAnimatedValue<bool>5A synced bool parameter on a NetworkAnimator. Setting it updates the Unity animator and marks it to be sent to clients for the next few syncs.
AnimatedBoolAccessclassMonoBehaviour1Small helper that exposes one named bool of a NetworkAnimator as a Set method, so a UnityEvent can drive a networked animator bool.
AnimatedFloatclassAnimatedValue<float>3A synced float parameter on a NetworkAnimator, sent compressed within a range and precision.
AnimatedFloatLerpclassAnimatedFloat3A synced animator float that clients ease towards the received value instead of jumping to it. Big changes past snapThreshold snap straight away.
AnimatedIntclassAnimatedValue<int>2A synced integer animator parameter. The server sets it and clients write the received value to their animator.
AnimatedLayerWeightclassAnimatedValue<float>2A networked Animator layer weight, synced as a 0 to 1 float. Set up by NetworkAnimator.
AnimatedLayerWeightLerpclassAnimatedLayerWeight6A networked layer weight that eases towards a new value instead of jumping. Big changes past snapThreshold jump at once.
AnimatedTriggerclassAnimatedValue<bool>5A networked animator trigger: the server sets it and clients fire the same trigger on their animator.
AnimatedValue<T>abstract classINameable11Base for one synced animator parameter (bool, float, trigger) on a NetworkAnimator. A change is resent in the next several syncs so it gets through. Get one from the animator with GetBool, GetFloat or GetTrigger.
AnimationBasedSoundclassMonoBehaviour1Plays sound effects from animation events. Sits next to an Animator; an animation event calls PlaySound with a clip index.
AnimatorBoolAccessclassMonoBehaviour1Small helper that sets one bool on a plain Unity Animator, so a UnityEvent can drive it. Local only, not networked.
INameableinterface1Something with a display name for debug GUI. Implemented by AnimatedValue<T>.
NetworkAnimatorclassNetworkEntityBehaviour, INetworkSerialized, IBuildRendererPostBake, +1 more16Syncs chosen Animator parameters (floats, ints, bools, triggers, layer weights) from the server to clients as streamed state, and sends the current animation states to joining players. Set values through the Get methods' objects on the server.
NetworkAnimator.FloatParameterTypeenum4Kinds of float parameter a NetworkAnimator could sync: a plain float, a layer weight, or either with lerping. Probably unused, as nothing else in the code refers to it.

Alta.Networking.Internal​

TypeKindBasePublic membersDocumented in, or what it is
ClientSerializedEnumerableclassSerializedEnumerable3Client-side enumerator over the entities the client serializes, in identifier order from a sorted list. EntityManager.GetClientSerialized returns its single instance.
ConnectionReceiverabstract classIDisposable3Takes received packets for one connection channel and processes them now or queues them. The channel picks normal, timed or counted; servers always use normal.
ConnectionReceiverTypeenum3How a client connection channel processes incoming reliable packets: Normal (all at once), Timed (by time budget) or Counted (by message count). The server always uses Normal.
ConnectionReceiveSettingsclassGlobalSettings<ConnectionReceiveSettings>6Global settings for how a client spreads processing of received reliable messages over frames. Servers always process straight away.
ConnectionReceiveSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Networking.ScriptableObject<ConnectionReceiveSettings>0Editor menu item for creating a ConnectionReceiveSettings asset.
CountedQueuedConnectionReceiverclassQueuedConnectionReceiver1Client connection receiver that handles a set number of messages per frame and queues the rest. Chosen by a ConnectionChannel with the Counted receiver type.
EntityManagerclassILinkProvider, IEntityManager, IDisposable19Finding entities: One per scene, in a private field of NetworkScene.
IEntityManagerinterface2Part of the network scene that tracks which entities have serialized (streamed) state. NetworkScene implements it.
ILinkProviderinterface5Hands out and tracks network entity links (identifier slots). EntityManager is the main implementation; LocalLinkProvider is another.
MessageProcessorstatic class2Reads single messages out of received packet data and runs the connection's handler for each message type. Used by the connection receivers on both sides.
NormalConnectionReceiverclassConnectionReceiver3Connection receiver that handles every message in a packet straight away, with no queueing. Always used on the server, and on clients for channels set to Normal.
OutgoingPacketManagerclassIDisposable13Batches outgoing messages for one connection channel into packets and sends them. Reliable channels keep up to 64 unsent packets and disconnect the player when that fills up. Each Connection has one per channel.
Packetclass8An outgoing packet buffer that several messages are written into, each with a 2-byte length, before it is sent on a connection.
PooledDataQueueItemclass3A pooled wrapper around a received packet's bytes, used by QueuedConnectionReceiver to queue packets for later frames.
QueuedConnectionHelperstatic class4Tracks all queued connection receivers so code can tell when every queued message has been handled.
QueuedConnectionReceiverabstract classConnectionReceiver5A connection receiver that can hold packets back and process them later, so incoming messages can be spread over frames. Subclasses decide when to queue.
SceneSerializerclass11Sends and reads the regular state updates of every EntitySerializer in a network scene, packing as many as fit into each SceneSerialize message. The server writes per connection.
SerializedEnumerableclassIEnumerable<EntitySerializer>, IEnumerable, IEnumerator<EntitySerializer>, +2 more7Walks the linked list of serialized entities from a start index, returning each entity's serializer. Used by EntityManager; skips placeholder links.
SerializingEntityHandlerdelegate0Callback for SceneSerializer.WritingEntity, raised before each entity's data is written into a sync stream, with its index, serializer, bit size and stream.
TimedQueuedConnectionReceiverclassQueuedConnectionReceiver2Client connection receiver that spends a time budget per frame on messages and queues the rest, to keep the frame rate up. Queues everything until the local player is set.

Alta.Networking.Scripts.Player​

TypeKindBasePublic membersDocumented in, or what it is
IPlayerinterfaceINetworkEntity25Arguments and results

Alta.Networking.Servers​

TypeKindBasePublic membersDocumented in, or what it is
ConnectToServerUtilitystatic class2Joining a server: Owns the client socket and the current pipeline. StopCurrentConnectionAttempt(). Registers the in-game message handlers once a join succeeds.
JoinResultclass9Client: the outcome of trying to join a server, with a player-facing message for each failure.
PlayerJoinLeaveDataclass4Console events
ServerHandlerclass29ServerHandler: There's one per running server.
ServerHandler.BootupStepdelegate0An async step run while the server boots, added with ServerHandler.AddBootupStep. It can report progress text through the callback.
ServerHandler.ConnectionStepdelegate0An async step run for each connecting player, added with ServerHandler.AddConnectionStep. Gets the connection and a progress text callback.
ServerJoinLockstruct5Server lifecycle
ServerLifetimePipelinestatic class6Server lifecycle: Opens the server socket and makes the handler. GetServerRegion(), GetServerFleet().
ServerLockCollectionclassIEnumerable<ServerJoinLock>, IEnumerable4Server lifecycle
ServerPlayerConnectionHandlerOldclass6Server: checks join requests and accepts or refuses players. Despite the name, ServerHandler still creates and uses it.
ServerPlayerConnectionHandlerOld.ApiServerJoinResultstruct2Result of a join check with the web API: whether it passed and an error message. Not used anywhere in this build.

Alta.Networking.Voice​

TypeKindBasePublic membersDocumented in, or what it is
VoiceChatMouthControllerclassMonoBehaviour0Animates a player's mouth from their voice chat volume: sets the Speaking layer weight and picks random mouth shapes. Client only; turns itself on once linked to a player, never when headless.

Alta.Profiling.Networking​

TypeKindBasePublic membersDocumented in, or what it is
ConnectionSimulatorConfigurationclass5Settings for simulating a bad connection: send and receive delays in ms and a packet loss chance. Held by NetworkingProfiler.
DuplicateKeyComparer<TKey>internal classIComparer<TKey>1Internal comparer that never reports two keys as equal, so a sorted list can hold duplicate keys. EntityStatistics uses it to sort by float values.
EntityMessageStatisticsclassIndexedStatisticList<EntityMessageTypeStatistic, EntityMessageType>1Profiling list of bytes sent, one statistic per entity message type.
EntityMessageTypeStatisticclassNetworkingStatistic3Network traffic statistic for one entity message type.
EntityStatisticclassNetworkingStatistic10Network profiling stats for one entity: bytes sent, split by entity message type and by behaviour. Used by the networking profiler.
EntityStatisticsclassNetworkingStatisticsListNonSerialized<EntityStatistic>7Network profiling list of bytes sent per entity, indexed by entity identifier, with inspector buttons to search, track chosen entities and list the top senders.
IndexedStatisticList<TStatistic, TStatType>abstract classNetworkingStatisticsList<TStatistic>0Base for network profiling lists that give each statistic type (such as a message type) a fixed index in the list.
MessageStatisticsclassNetworkingStatisticsList<MessageTypeStatistic, KeyValuePair<MessageType, MessageTypeStatistic>>1Network profiling list named "Messages" that shows the per message type statistics from a dictionary.
MessageTypeStatisticclassNetworkingStatistic2Network traffic statistic for one top-level MessageType.
SerializedBehaviourStatisticclassNetworkingStatistic3Network traffic statistic for one serialized behaviour, by name.
SerializedBehaviourStatisticsclassIndexedStatisticList<SerializedBehaviourStatistic, string>1Profiling list of bytes sent, one statistic per serialized behaviour name.

Alta.Streaming​

TypeKindBasePublic membersDocumented in, or what it is
IForcedPresenceOnServerinterface0Marker interface for components that must stay in the scene on the server. Nothing in this build checks it, so the check is probably in the build tools.
IForcePresenceOnAndroidClientinterface0Marker interface for components that must stay in the scene on Android clients. Nothing in this build checks it, so the check is probably in the build tools.
ScriptAssignedStaticBatchingMarkerclassMonoBehaviour, IForcePresenceOnAndroidClient0Hidden marker component that AdditionalStaticContent adds to objects it assigns for static batching. Kept on Android clients.

Alta.Voice​

TypeKindBasePublic membersDocumented in, or what it is
IVivoxMutedPlayerStoreinternal interface3Internal store of user IDs the local player has muted. VoiceChat uses the PlayerPrefs version, which saves on every change.
IVivoxVoiceUpdatableinterface1Positional voice that VivoxClient updates each frame. VivoxVoice implements it.
IVoiceChatinterface4The voice chat service, implemented by VoiceChat: who you can hear and per-player mutes.
VivoxChannelclass5Settings for one Vivox voice or text channel; VivoxManager makes one for the server and VivoxSession joins it. Client side.
VivoxClientclass27Wrapper around the Vivox voice and text chat client: login, audio devices, channels and muting. Client only; one is made by VivoxManager and reached through VivoxManager.Instance.Client.
VivoxConfigurationclass6Client: Vivox voice settings (issuer, domain, endpoint) and how to get login and channel tokens, either from the Alta API or signed locally with the sandbox key.
VivoxManagerclassSingletonBehaviour<VivoxManager>5Client singleton that logs in to Vivox voice chat with the player's Alta account and joins a positional voice channel for the current server. Disabled on headless servers.
VivoxPlayerPrefsMutedPlayerStoreinternal classIVivoxMutedPlayerStore3Client store of muted player IDs, saved as JSON in Unity PlayerPrefs under MutedPlayersKey. Loads on first use.
VivoxSessionclass12One joined Vivox voice or text channel. Connects with a token from the API and pairs each participant with the matching in-game player. Client side.
VivoxTextclass4Client: wraps text messaging on a Vivox channel session, raising an event for each received message.
VivoxUtilitystatic class7Startup and app state
VivoxVoiceclassIVivoxVoiceUpdatable3Client: positional Vivox voice for one channel session. Connects the audio and sends the head's position to Vivox while active. Made by VivoxSession.
VoiceChatclassIVoiceChat5Connection messages
VoiceChatScopeenum3Whose voices the local player can hear (VoiceChat.AudibleScope): no one, friends only, or everyone. Toggled by the mute non-friends quick action.

Alta.WebServer​

TypeKindBasePublic membersDocumented in, or what it is
AltaConsoleModuleclassWebModuleBase2Remote console: the game's web server, path /console
AltaFolderModuleclassWebModuleBase, IDisposable4Remote console
OutputFolderModuleclassWebModuleBase, IDisposable3Remote console
WebServerThreadclassIDisposable4Server: small HTTP server on its own thread that serves the save cache at /cache, output files at /output and the console at /console, with CORS open. ServerHandler starts it.