AccumulativeAverageCount | class | | 5 | A counter that keeps a running average of how many times something happened per period. Used for networking stats such as per-type serialize counts. |
AccumulativeAverageNumber | class | | 5 | Profiling 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. |
BaseSync | abstract class | | 1 | Base of the MethodSync family. Registers a handler for one entity message type and sends that message to everyone in the entity's chunks. |
ChunksChanged | delegate | | 0 | Callback for a change of chunks: the chunks that were left and the chunk that was joined. |
ClientOnly | class | MonoBehaviour, IBuildRendererPostBake, IBuildBakeable | 0 | Entity 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. |
ClientPacketReceiver | class | IPacketReceiver, IPacketProcessor | 2 | The 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. |
ClientSpawnManager | class | SpawnManager | 5 | Spawning |
ClientSync | class | BaseSync, ISync | 8 | The 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. |
ConfirmJoinMessage | internal struct | | 8 | Internal 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. |
Connection | class | IConnection | 30 | Sockets and connections: One per peer. On a server, a player's is player.ConnectionToRemotePlayer. |
ConnectionChannel | class | ScriptableObject | 7 | Sockets and connections: The channels come from GlobalSettings<NetworkingSettings>.Instance.Channels; each connection has one outgoing queue per channel. |
ConnectionChannel.Create | class | AltaMenuItemBase.Assets.Create.Township.Networking.ScriptableObject<ConnectionChannel> | 0 | Editor menu item for creating a ConnectionChannel asset. |
ConnectionEventHandler | delegate | | 0 | Handler for events about a network Connection, such as a player connecting or disconnecting. |
ControlledWriteSync | class | | 3 | An entity message channel where each send passes its own write method, unlike MethodSync which uses a fixed one. Registers the read handler when created. |
DestroyableStaticObject | class | ModifiableStaticObject | 0 | Static objects: Alta.Networking.DestroyableStaticObject derives from ModifiableStaticObject and adds health. On the server it listens to its ImpactDetectors. |
DestroyMessage | static class | | 2 | The network message that tells clients to destroy or unload an entity. Static fields hold one message's data between Set and Serialize. |
EntityDespawnedHandler | delegate | | 0 | Handler for an entity being removed by the scene, with isUnload telling whether it was unloaded rather than destroyed. Used by NetworkEntity.DestroyedByScene. |
EntityMessageHandler | class | | 7 | Entity 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). |
EntityMessageType | enum | | 120 | Entity sync: Alta.Networking.EntityMessageType is written as 8 bits, so 0 to 255. |
EntitySerializationMessage | static class | | 2 | Network message that carries an entity's full serialized data (its EntitySerializer). |
EntitySerializer | class | | 19 | Writes 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. |
EntitySpawnedHandler | delegate | | 0 | Callback given a NetworkEntity once it has spawned. Used with WaitForSpawn to act on an entity as soon as it exists on the client. |
EntityStreamerData | class | | 3 | An EntitySerializer's last written state data for one entity. |
EntitySyncMessage | static class | | 2 | Network 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. |
ExampleBehaviour | class | | 0 | Example code showing how to set up syncs with SyncFactory. Not a component and not used by the game. |
FakeSocket | class | ISocket, IDisposable | 20 | A do-nothing socket for running without a network. Sends report success and go nowhere; most other calls log an error. |
GeneralGameEvents | static class | | 6 | Static events for when a client connects to a server and when a server starts or ends. Exceptions from handlers are logged, not thrown. |
GeneratedNetworkEntityBehaviour | abstract class | NetworkEntityBehaviour | 1 | Base for an entity behaviour that builds its content procedurally when it first spawns on the server, rather than loading it. |
IChunkedEntity | interface | | 2 | What Chunker needs from the object it tracks. NetworkEntity is the only implementation. |
ICustomTypeReplace | interface | IEntityReplaceHandler | 1 | An IEntityReplaceHandler that names which component type to look for on the new entity when NetworkEntity.ReplaceWith runs, instead of its own type. |
IEntityReplaceHandler | interface | | 2 | A component that carries its state over when its entity is replaced by another (for example an item turning into its cooked version). |
IEntitySerialized | interface | | 1 | Something that has an EntitySerializer for its full network data. Implemented by NetworkEntity. |
INetworkEntity | interface | | 13 | The core of a networked entity as seen by the networking code. NetworkEntity implements it. |
INetworkEntityBehaviour | interface | | 5 | Implement on a component of a NetworkEntity prefab to get the entity's network lifecycle calls (initialise, server spawn, player connect and disconnect). |
INetworkScene | interface | | 15 | The networked scene: the spawner, the special chunks and a few server settings everyone can read. NetworkSceneManager.Current is the one in use. |
INetworkSceneInternal | interface | INetworkScene, IEntityManager | 8 | Internal 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. |
INetworkSerialized | interface | | 5 | Implement 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. |
InternalMessage | static class | | 3 | Network message for an entity's own message types (EntityMessageType), used by syncs to send data to an entity's handler on the other side. |
IPacketReceiver | interface | | 1 | Something that pulls incoming packets off the transport each frame. ServerPacketReceiver and ClientPacketReceiver implement it, and Socket holds one. |
ISerializeChildren | interface | | 7 | Passed to ISavable load and save methods so a component can save and restore the child prefabs spawned under its entity. |
ISocket | interface | IDisposable | 17 | The 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. |
ISync | interface | | 8 | Fluent 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. |
JoinedServerInfo | class | | 9 | Joining 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. |
MessageType | enum | | 23 | Connection messages: Free below 32: 3, 5, 8, 14, 16, 19, 27, 31. |
MethodSync | class | Sync | 2 | Entity 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> | class | Sync<T> | 2 | An 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> | class | Sync<T> | 2 | A 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. |
ModifiableStaticEvent | class | AltaEvent<ModifiableStaticObject, ModifiableStaticUnityEvent> | 0 | A serializable event that passes a ModifiableStaticObject, wired up in the inspector. |
ModifiableStaticManager | class | NetworkEntityBehaviour, ISavable<ModifiableStaticManagerSaveData>, ISavableSave<ModifiableStaticManagerSaveData>, +1 more | 11 | Tracks 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. |
ModifiableStaticManagerSaveData | internal class | NewSaveData<ModifiableStaticManager, ModifiableStaticManagerSaveData> | 1 | Save data for ModifiableStaticManager: which static objects (by hash) are modified. |
ModifiableStaticObject | class | MonoBehaviour, IChangeWithChunking, IIgnoreForStaticFlatten, +2 more | 5 | Part 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. |
ModifiableStaticUnityEvent | class | UnityEvent<ModifiableStaticObject> | 0 | A serializable UnityEvent that passes a ModifiableStaticObject. |
ModificationArguments | struct | | 4 | Message payload ModifiableStaticManager sends to chunks when a static scene object's modified state changes: the object's hash and whether it is modified. |
MoveMessage | static class | | 2 | Network message that sets an entity's position and rotation on clients. |
NetworkAxisPosition | class | NetworkAxisValue | 0 | A NetworkAxisValue that syncs a transform's local position along one axis, between a minimum and maximum. |
NetworkAxisRotation | class | NetworkAxisValue | 1 | A NetworkAxisValue that syncs a rotation around one local axis, in degrees from 0 to 360, with wrap-around. |
NetworkAxisValue | abstract class | NetworkEntityBehaviour, INetworkSerialized | 7 | Base 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. |
NetworkColliderGroup | class | ColliderGroup, INetworkEntityBehaviour | 6 | A 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. |
NetworkEntity | class | MonoBehaviour, IChunkedEntity, IEntitySerialized, +1 more | 70 | NetworkEntity: Runs on server and clients. |
NetworkEntity.SyncPriorityModifiers | enum | | 1 | Flags on NetworkEntity.CurrentPriorityModifiers that change sync priority. DockedOrInteracted is set while a pickup is docked or an interactable is in use. |
NetworkEntityBehaviour | abstract class | MonoBehaviour, INetworkEntityBehaviour | 5 | Entity sync: The base class for networked components. Entity gets the NetworkEntity. Overridable: |
NetworkEntityComponentController | class | MonoBehaviour, IInitializeAsLocalPlayer, IInitializeAsRemotePlayer | 0 | Turns 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. |
NetworkEntityHandler | delegate | | 0 | Callback that takes a NetworkEntity. Used by events such as Cookable.SwappedToCookedVersion and an entity's InitializationFinished. |
NetworkEntityLink | class | | 21 | One 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. |
NetworkEntityParent | class | MonoBehaviour | 4 | Base of NetworkPrefab and NetworkScene. Holds the list of child network entities embedded in it, and gives each an EmbeddedId equal to its index. |
NetworkGravity | class | NetworkEntityBehaviour | 5 | Replaces Unity gravity on a rigidbody with a ConstantForce, so gravity and drag can be changed per object and synced to clients. |
NetworkHash128 | struct | | 20 | A 128-bit ID stored as 16 bytes, written and read as a 32 character hex string. |
NetworkingSettings | class | GlobalSettings<NetworkingSettings> | 13 | Global networking settings: transport (KCP) settings, channels and send and receive limits. |
NetworkingSettings.Create | class | AltaMenuItemBase.Assets.Create.Global_Settings.ScriptableObject<NetworkingSettings> | 0 | Editor menu item for creating a NetworkingSettings asset. |
NetworkManager | static class | | 21 | Sockets and connections, Update modules |
NetworkPrefab | class | NetworkEntityParent, INetworkEntityBehaviour, ISerializeChildren | 25 | Prefabs and prefab hashes, Arguments and results: A MonoBehaviour next to the prefab's NetworkEntity. |
NetworkPrefab.ChildPrefab | class | | 3 | Pairs a child network prefab with the entity it sits under, for saving and spawning nested prefabs. |
NetworkPrefabChildEventHandler | delegate | | 0 | Callback 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. |
NetworkPrefabConverter | class | TypeConverter | 2 | Type converter that turns a string (a prefab hash or name) into a NetworkPrefab, for console command arguments. |
NetworkPrefabEventHandler | delegate | | 0 | Callback with a NetworkPrefab, used by NetworkPrefab.PreDestroyed. |
NetworkRigidbody | class | NetworkEntityBehaviour, INetworkSerialized, ISavableFull<NetworkRigidbodySaveData>, +6 more | 21 | Syncs 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. |
NetworkRigidbodySaveData | internal class | NewSaveData<NetworkRigidbody, NetworkRigidbodySaveData> | 6 | Save data for a NetworkRigidbody: its transform, motion and sleep state. |
NetworkRotation | class | NetworkEntityBehaviour | 3 | Syncs 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. |
NetworkScene | class | NetworkEntityParent, INetworkSceneInternal, INetworkScene, +1 more | 22 | The 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. |
NetworkSerializedProfiler | static class | | 3 | Collects the shared serialize timers of every INetworkSerialized type marked with ProfileNetworkSerializedAttribute, for performance stats. |
NetworkTransform | class | NetworkEntityBehaviour, INetworkSerialized, IInitializeAsLocalPlayer | 8 | Syncs 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. |
PacketSentHandler | delegate | | 0 | Callback for Connection.PacketSent, with the connection, the bytes sent, their count, the channel and the transport result. |
ParentChangedHandler | delegate | | 0 | Callback for when a network entity's parent changes, with the entity, its old parent and its new parent. |
PhysicsSerializationSettings | static class | | 10 | Limits and precision used when packing physics values (velocity, angular velocity, scale) into network messages. |
PingMessage | static class | | 6 | The ping network message. The client sends a timestamp, the server echoes it back, and the client works out the round trip time. |
PlayerComponentController | class | MonoBehaviour, IInitializeAsLocalPlayer | 0 | Turns 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. |
PositionSyncBlocker | enum | | 1 | Flags 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. |
PrefabManager | static class | | 5 | Prefabs and prefab hashes: It loads every NetworkPrefab under Resources/Network Prefabs the first time anything asks, into a private Dictionary<uint, NetworkPrefab>. |
PrefabNameMap | class | GlobalSettings<PrefabNameMap>, ISerializationCallbackReceiver | 1 | Global settings asset that maps prefab hashes to their asset paths. Get it with PrefabNameMap.Instance. |
ProfileNetworkSerializedAttribute | class | Attribute | 0 | Marks an INetworkSerialized type so NetworkSerializedProfiler picks up its static serializeTimer and prepareForWriteTimer fields. |
RecreateArgumentMode | enum | | 3 | When a MethodSyncClass makes a new argument object while reading a message: only if its value is null, always, or never (reuse the existing one). |
ReplaceAvoidFlags | enum | | 8 | Flags 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. |
RequestJoinMessage | internal class | | 8 | The 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. |
RequestServerDiagnosticsMessage | static class | | 2 | Message a client sends to turn server diagnostics on or off for itself. |
SceneEntityMessage | static class | | 4 | Writes or reads which entity a message is about, by identifier. Other messages such as MoveMessage and DestroyMessage start with it. |
SceneSerializationMessage | class | | 1 | Receives scene serialization data and passes it to the current network scene's scene serializer. |
SerializeConnectionMethod | delegate | | 0 | A method that writes (or reads) a message body for one connection on a stream. Passed to Connection and OutgoingPacketManager send methods. |
SerializedEntityHandler | delegate | | 0 | Handler for the EntitySerializer.WroteEntity and ReadEntity events, given the serializer, the entity and its raw serialized bits. |
SerializeMethod | delegate | | 0 | Handler 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> | delegate | | 0 | Callback 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. |
ServerDiagnosticsMessage | static class | | 5 | Message the server sends to clients that asked for diagnostics: its frame rate and a text message. |
ServerMessageReceiverPerConnection | class | | 5 | Server: per-connection receiver that holds incoming unreliable packets until the frame's processing step and handles connect and disconnect events. Made by ServerPacketReceiver. |
ServerPacketReceiver | class | IPacketReceiver, IPacketProcessor | 8 | The 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. |
ServerSpawnManager | class | SpawnManager | 6 | Spawning |
ServerSync | class | BaseSync, ISync | 8 | The 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. |
Socket | class | ISocket, IDisposable | 22 | Sockets and connections: Get the current one from Socket.Current (a static ISocket, the last socket made). |
SocketEventHandler | delegate | | 0 | Callback that receives an ISocket, for socket events. |
SpawnIndex | class | | 4 | Per-entity counter that orders spawns and despawns, so clients drop destroy messages that are older than the entity's latest spawn. |
SpawnManager | abstract class | | 13 | Spawning: Get it from NetworkSceneManager.Current.Spawner, entity.Spawner or SpawnHelper.Manager. |
SpawnMessage | static class | | 2 | The network message that spawns a prefab on clients: prefab hash, entity and embedded ids, spawn index, and optionally chunk, position, rotation and scale. |
StaticChangeEvent | delegate | | 0 | Callback for ModifiableStaticManager.ObjectChanged, with a static object's hash and whether it is now modified. |
StaticPlatformSupport | class | NetworkEntityBehaviour | 2 | Network 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. |
StreamAuthorityHelper | static class | | 2 | Checks whether a connection may send data for an entity, and logs when it may not. |
StreamEntityExtensions | static class | | 7 | Extension methods on Stream for checking which side is reading or writing, and for sending entities, entity ids and chunks. |
StreamMethod | delegate | | 0 | A method that reads or writes something on a serialization stream. Used as the handler for Sync and MethodSync. |
Sync | abstract class | | 5 | Base 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 class | | 5 | Base for an entity sync that sends a value of type T. Registers its handler with the entity's message handler for one message type. |
SyncFactory | static class | | 1 | Makes the right ISync for the side you are on. |
TemporaryUint256 | static class | | 1 | A shared scratch array of 256 uints, used by spawn and sync messages to hold embedded entity ids. |
ThrottledMethodSync | class | | 3 | Wraps an entity message so it is sent at most once per set interval; extra sends inside the interval are dropped, not delayed. |
TransportSystem | enum | | 1 | Which network transport to use. KCP is the only option and the default. |