mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
feature: PortTransport interface
This commit is contained in:
parent
ee957f3fcd
commit
0ff04c1cf0
13
Assets/Mirror/Core/PortTransport.cs
Normal file
13
Assets/Mirror/Core/PortTransport.cs
Normal file
@ -0,0 +1,13 @@
|
||||
// convenience interface for transports which use a port.
|
||||
// useful for cases where someone wants to 'just set the port' independent of
|
||||
// which transport it is.
|
||||
//
|
||||
// note that not all transports have ports, but most do.
|
||||
|
||||
namespace Mirror
|
||||
{
|
||||
public interface PortTransport
|
||||
{
|
||||
ushort Port { get; set; }
|
||||
}
|
||||
}
|
11
Assets/Mirror/Core/PortTransport.cs.meta
Normal file
11
Assets/Mirror/Core/PortTransport.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7c7c2820d7974cb28c7bfe9aae890a0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 7453abfe9e8b2c04a8a47eb536fe21eb, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user