2018-12-26 22:07:24 +00:00
# Classes Overview
2019-06-25 23:43:56 +00:00
Mirror includes the following classes:
2018-12-26 22:07:24 +00:00
- [NetworkServer ](NetworkServer )
2019-06-25 23:43:56 +00:00
Network Server is a High-Level-API class that manages connections from multiple clients.
2018-12-26 22:07:24 +00:00
- [NetworkClient ](NetworkClient )
2019-06-25 23:43:56 +00:00
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.
2018-12-26 22:07:24 +00:00
- [NetworkConnection ](NetworkConnection )
2019-06-25 23:43:56 +00:00
Network Connection is a high-level API class that encapsulates a network connection.
2018-12-26 22:07:24 +00:00
- [NetworkBehavior ](NetworkBehavior )
2019-06-25 23:43:56 +00:00
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.
2018-12-26 22:07:24 +00:00
- [Attributes ](Attributes )
2019-06-25 23:43:56 +00:00
Networking attributes are added to member functions of NetworkBehaviour scripts, to make them run on either the client or server.
2019-03-30 13:47:15 +00:00
- [SyncVars ](SyncVars )
2019-06-25 23:43:56 +00:00
SyncVars are variables of scripts that inherit from NetworkBehaviour, which are synchronized from the server to clients.
2019-03-30 13:49:28 +00:00
- [SyncEvents ](SyncEvent )
2019-06-25 23:43:56 +00:00
SyncEvents are networked events like ClientRpc’ s, but instead of calling a function on the game object, they trigger Events instead.
2018-12-26 22:07:24 +00:00
- [SyncLists ](SyncLists )
2019-03-23 12:26:33 +00:00
SyncLists contain lists of values and synchronize data from servers to clients.
2019-06-25 23:43:56 +00:00
2019-03-30 12:15:33 +00:00
- [SyncDictionary ](SyncDictionary )
2019-03-30 12:23:39 +00:00
A SyncDictionary is an associative array containing an unordered list of key, value pairs.
2019-06-25 23:43:56 +00:00
2019-03-30 12:15:33 +00:00
- [SyncHashSet ](SyncHashSet )
2019-03-30 16:51:06 +00:00
An unordered set of values that do not repeat.
2019-06-25 23:43:56 +00:00
2019-03-30 12:15:33 +00:00
- [SyncSortedSet ](SyncSortedSet )
2019-03-30 16:51:06 +00:00
A sorted set of values tha do not repeat.