Class IntegerExtensions
- Namespace
- RisingV.Shared.Extensions
- Assembly
- RisingV.Shared.dll
Provides extension methods for integer types to convert them to PrefabGUIDs and Entities.
public static class IntegerExtensions
- Inheritance
-
IntegerExtensions
- Inherited Members
Methods
EntityFromGuid(int)
Converts an integer to a PrefabGUID and retrieves the corresponding Entity.
public static Entity EntityFromGuid(this int guid)
Parameters
guid
intThe integer value representing the GUID.
Returns
- Entity
An Entity instance corresponding to the PrefabGUID created from the integer.
ToPrefabGuid(int)
Converts an integer to a PrefabGUID (not validated).
public static PrefabGUID ToPrefabGuid(this int guid)
Parameters
guid
intThe integer value representing the GUID.
Returns
- PrefabGUID
A PrefabGUID instance created from the integer.