• Home
  • Tutorials
  • API Documentation
  • Asset Store
Show / Hide Table of Contents
  • SuperNet.Netcode.Compress
    • CompressorDeflate
    • CompressorLZF
    • ICompressor
  • SuperNet.Netcode.Crypto
    • CryptoAES
    • CryptoECDH
    • CryptoRandom
    • CryptoRSA
    • Curve25519
    • ICryptoAuthenticator
    • ICryptoEncryptor
    • ICryptoExchanger
    • ICryptoRandom
  • SuperNet.Netcode.Transport
    • ConnectionRequest
    • DisconnectReason
    • Host
    • HostConfig
    • HostEvents
    • HostStatistics
    • HostTimespan
    • HostTimestamp
    • IHostListener
    • IMessage
    • IMessageListener
    • IPeerListener
    • MessageEvents
    • MessageReceived
    • MessageSent
    • Peer
    • PeerConfig
    • PeerEvents
    • PeerStatistics
  • SuperNet.Netcode.Util
    • Allocator
    • ArrayPool<T>
    • CRC32
    • IPComparer
    • IPResolver
    • IWritable
    • ObjectPool<T>
    • Reader
    • Serializer
    • Writer
  • SuperNet.Unity.Components
    • INetworkAuthoritative
    • INetworkRegisterable
    • INetworkRollbackable
    • NetworkAnimation
    • NetworkAnimator
    • NetworkAuthority
    • NetworkPrefab
    • NetworkRegistrar
    • NetworkSpawner
    • NetworkSyncModeMethod
    • NetworkSyncModeVector2
    • NetworkSyncModeVector3
    • NetworkTransform
  • SuperNet.Unity.Core
    • NetworkComponent
    • NetworkHost
    • NetworkIdentity
    • NetworkIdentityExtensions
    • NetworkManager
  • SuperNet.Unity.Editor
    • NetworkAuthorityEditor
    • NetworkHostEditor
    • NetworkHostEditor.BandwithUnit
    • NetworkIdentityDrawer
    • NetworkManagerEditor
    • NetworkPrefabEditor
    • NetworkSpawnerEditor

Struct NetworkIdentity

ID used to syncronize components over network.

Implements
IComparable
IComparable<NetworkIdentity>
IEquatable<NetworkIdentity>
IFormattable
Namespace: SuperNet.Unity.Core
Assembly: cs.temp.dll.dll
Syntax
public struct NetworkIdentity : IComparable, IComparable<NetworkIdentity>, IEquatable<NetworkIdentity>, IFormattable

Constructors

NetworkIdentity(UInt32)

Create a new network ID.

Declaration
public NetworkIdentity(uint value)
Parameters
Type Name Description
System.UInt32 value

Raw network ID.

Fields

Value

Raw network ID.

Declaration
public uint Value
Field Value
Type Description
System.UInt32

VALUE_INVALID

Invalid value.

Declaration
public const uint VALUE_INVALID = 0U
Field Value
Type Description
System.UInt32

Properties

IsInvalid

This ID is invalid.

Declaration
public bool IsInvalid { get; }
Property Value
Type Description
System.Boolean

Methods

CompareTo(NetworkIdentity)

Declaration
public int CompareTo(NetworkIdentity other)
Parameters
Type Name Description
NetworkIdentity other
Returns
Type Description
System.Int32

CompareTo(Object)

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Int32

Equals(NetworkIdentity)

Declaration
public bool Equals(NetworkIdentity other)
Parameters
Type Name Description
NetworkIdentity other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

GenerateRandomID(Random)

Generate a new dynamic ID.

Declaration
public static NetworkIdentity GenerateRandomID(Random random)
Parameters
Type Name Description
Random random

Random generator to use.

Returns
Type Description
NetworkIdentity

A new dynamic ID.

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

ToString(String, IFormatProvider)

Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Type Name Description
System.String format
IFormatProvider provider
Returns
Type Description
System.String

Operators

Equality(NetworkIdentity, NetworkIdentity)

Declaration
public static bool operator ==(NetworkIdentity lhs, NetworkIdentity rhs)
Parameters
Type Name Description
NetworkIdentity lhs
NetworkIdentity rhs
Returns
Type Description
System.Boolean

Explicit(NetworkIdentity to UInt32)

Declaration
public static explicit operator uint (NetworkIdentity id)
Parameters
Type Name Description
NetworkIdentity id
Returns
Type Description
System.UInt32

Implicit(UInt32 to NetworkIdentity)

Declaration
public static implicit operator NetworkIdentity(uint value)
Parameters
Type Name Description
System.UInt32 value
Returns
Type Description
NetworkIdentity

Inequality(NetworkIdentity, NetworkIdentity)

Declaration
public static bool operator !=(NetworkIdentity lhs, NetworkIdentity rhs)
Parameters
Type Name Description
NetworkIdentity lhs
NetworkIdentity rhs
Returns
Type Description
System.Boolean

Implements

IComparable
IComparable<>
IEquatable<>
IFormattable
Back to top Generated by DocFX