mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
37 lines
1.6 KiB
Markdown
37 lines
1.6 KiB
Markdown
# Classes Overview
|
||
|
||
Mirror includes the following classes:
|
||
|
||
- [NetworkServer](NetworkServer)
|
||
Network Server is a High-Level-API class that manages connections from multiple clients.
|
||
|
||
- [NetworkClient](NetworkClient)
|
||
Network Client is a high-level API class that manages a network connection from a client to a server, and can send and receive messages between the client and the server.
|
||
|
||
- [NetworkConnection](NetworkConnection)
|
||
Network Connection is a high-level API class that encapsulates a network connection.
|
||
|
||
- [NetworkBehavior](NetworkBehavior)
|
||
Network Behaviour scripts work with game objects that have a NetworkIdentity component. These scripts can perform high-level API functions such as Commands, ClientRpc’s, SyncEvents and SyncVars.
|
||
|
||
- [Attributes](Attributes)
|
||
Networking attributes are added to member functions of NetworkBehaviour scripts, to make them run on either the client or server.
|
||
|
||
- [SyncVars](SyncVars)
|
||
SyncVars are variables of scripts that inherit from NetworkBehaviour, which are synchronized from the server to clients.
|
||
|
||
- [SyncEvents](SyncEvent)
|
||
SyncEvents are networked events like ClientRpc’s, but instead of calling a function on the game object, they trigger Events instead.
|
||
|
||
- [SyncLists](SyncLists)
|
||
SyncLists contain lists of values and synchronize data from servers to clients.
|
||
|
||
- [SyncDictionary](SyncDictionary)
|
||
A SyncDictionary is an associative array containing an unordered list of key, value pairs.
|
||
|
||
- [SyncHashSet](SyncHashSet)
|
||
An unordered set of values that do not repeat.
|
||
|
||
- [SyncSortedSet](SyncSortedSet)
|
||
A sorted set of values tha do not repeat.
|