Anvil
Anvil.API.NativeUtils Class Reference

Static Public Member Functions

static bool CreateFromResRef (ResRefType resRefType, string resRef, Action< CResGFF, CResStruct > deserializeAction)
 
static bool DeserializeGff (byte[] serialized, Func< CResGFF, CResStruct, bool > deserializeAction)
 
static string ExtractLocString (this CExoLocString locStr, int nID=0, byte gender=0)
 
static bool IsValidGff (this CResGFF resGff, IEnumerable< string > expectedFileTypes, IEnumerable< string > expectedVersions)
 
static bool IsValidGff (this CResGFF resGff, string expectedFileType, string expectedVersion=DefaultGffVersion)
 
static T PeekMessage< T > (this CNWSMessage message, int offset)
 
static string PeekMessageResRef (this CNWSMessage message, int offset)
 
static string PeekMessageString (this CNWSMessage message, int offset)
 
static ? byte[] SerializeGff (string fileType, Func< CResGFF, CResStruct, bool > serializeAction)
 
static ? byte[] SerializeGff (string fileType, string version, Func< CResGFF, CResStruct, bool > serializeAction)
 
static Color ToColor (this Vector vector)
 
static CExoLocString ToExoLocString (this CExoString str, int nId=0, byte gender=0)
 
static CExoLocString ToExoLocString (this string? str, int nId=0, byte gender=0)
 
static CExoString ToExoString (this string? str)
 
static Vector3 ToManagedVector (this Vector vector)
 
static Vector ToNativeVector (this Color color)
 
static Vector ToNativeVector (this Vector3 vector)
 
static CResRef ToResRef (this string? str)
 
static Vector3 ToVectorOrientation (this float facing)
 

The documentation for this class was generated from the following file: