static void InitializeResourceInfo() { string resourceName; string resourcePath; string resourceAssembly; uint instanceId; GameInterface.GetEnvironmentInfo(out resourceName, out resourcePath, out resourceAssembly, out instanceId); ms_resourcePath = resourcePath; ms_resourceAssembly = resourceAssembly; ms_resourceName = resourceName; }
private void FillOutOurDetails() { string resourceName; string resourcePath; string resourceAssembly; uint instanceId; if (!GameInterface.GetEnvironmentInfo(out resourceName, out resourcePath, out resourceAssembly, out instanceId)) { throw new Exception("Could not get environment information while creating a callback junction."); } Resource = resourceName; Instance = instanceId; }