Photon Fusion
2.0.8
Provides utility methods for reflection. More...
Static Public Member Functions | |
| static IEnumerable< Type > | GetAllNetworkBehaviourTypes () |
| Gets all types that are assignable from NetworkBehaviour from all assemblies. More... | |
| static IEnumerable< Type > | GetAllSimulationBehaviourTypes () |
| Gets all types that are assignable from SimulationBehaviour from all assemblies. More... | |
| static IEnumerable< Assembly > | GetAllWeavedAssemblies () |
| Gets all assemblies that have been weaved. More... | |
| static IEnumerable< Type > | GetAllWeavedNetworkBehaviourTypes () |
| Gets all types that are assignable from NetworkBehaviour from all weaved assemblies. More... | |
| static IEnumerable< Type > | GetAllWeavedSimulationBehaviourTypes () |
| Gets all types that are assignable from SimulationBehaviour from all weaved assemblies. More... | |
| static IEnumerable< Type > | GetAllWeaverGeneratedTypes () |
| Gets all types that have the WeaverGeneratedAttribute from all weaved assemblies. More... | |
| static T | GetCustomAttributeOrThrow< T > (this MemberInfo member, bool inherit) |
| Retrieves a custom attribute of type T from the provided member. More... | |
| static NetworkBehaviourWeavedAttribute | GetWeavedAttributeOrThrow (Type type) |
| Gets the NetworkBehaviourWeavedAttribute for the specified type. Throws an InvalidOperationException if the type has not been weaved. More... | |
Provides utility methods for reflection.
|
static |
Gets all types that are assignable from NetworkBehaviour from all assemblies.
|
static |
Gets all types that are assignable from SimulationBehaviour from all assemblies.
|
static |
Gets all assemblies that have been weaved.
|
static |
Gets all types that are assignable from NetworkBehaviour from all weaved assemblies.
|
static |
Gets all types that are assignable from SimulationBehaviour from all weaved assemblies.
|
static |
Gets all types that have the WeaverGeneratedAttribute from all weaved assemblies.
|
static |
Retrieves a custom attribute of type T from the provided member.
| T | The type of the attribute to retrieve. Must be a subclass of Attribute. |
| member | The member to retrieve the attribute from. |
| inherit | Specifies whether to search this member's inheritance chain to find the attributes. |
| ArgumentOutOfRangeException | Thrown when the provided member does not have an attribute of type T. |
| InvalidOperationException | Thrown when the provided member has more than one attribute of type T. |
| T | : | Attribute |
|
static |
Gets the NetworkBehaviourWeavedAttribute for the specified type. Throws an InvalidOperationException if the type has not been weaved.
| type | The type to get the NetworkBehaviourWeavedAttribute for. |
| InvalidOperationException | Thrown when the type has not been weaved. |