Class NetickUtils
- Namespace
- Netick
- Assembly
- Netick.dll
public static class NetickUtils
- Inheritance
-
NetickUtils
- Inherited Members
-
Methods
Ceiling(int)
public static int Ceiling(int v)
Parameters
v
int
Returns
- int
Clamp01(float)
public static float Clamp01(float a)
Parameters
a
float
Returns
- float
GetAllSubclassOf(Type)
public static List<Type> GetAllSubclassOf(Type parent)
Parameters
parent
Type
Returns
- List<Type>
GetMethodName(MethodInfo)
public static string GetMethodName(MethodInfo method)
Parameters
method
MethodInfo
Returns
- string
GetStableHashCode(string)
public static int GetStableHashCode(this string str)
Parameters
str
string
Returns
- int
GetWordSize(int)
public static int GetWordSize(int byteSize)
Parameters
byteSize
int
Returns
- int
GetWordSize(int, int)
public static int GetWordSize(int byteSize, int alignment)
Parameters
byteSize
int
alignment
int
Returns
- int
Lerp(float, float, float)
public static float Lerp(float a, float b, float t)
Parameters
a
float
b
float
t
float
Returns
- float
LoadStringFromPtr(StringBuilder, int*, int)
public static string LoadStringFromPtr(StringBuilder cache, int* ptr, int charCount)
Parameters
cache
StringBuilder
ptr
int*
charCount
int
Returns
- string
PowerOfTwo(int)
public static int PowerOfTwo(int depth)
Parameters
depth
int
Returns
- int
SetPtrString(INetickNetworkScript, string, int*, int, int, int)
public static void SetPtrString(INetickNetworkScript beh, string newVal, int* ptr, int charCount, int hasOnChanged, int isInputSourceOnly)
Parameters
beh
INetickNetworkScript
newVal
string
ptr
int*
charCount
int
hasOnChanged
int
isInputSourceOnly
int