Class SmartSimUtilities
- Namespace
- LlamaLogic.Packages
- Assembly
- LlamaLogic.Packages.dll
Provides utility methods specific to The Sims 4
public static class SmartSimUtilities
- Inheritance
-
SmartSimUtilities
- Inherited Members
Methods
GetResourceKeyForLocale(ResourceKey, CultureInfo)
Gets the ResourceKey for this string table resource with the specified locale
public static ResourceKey GetResourceKeyForLocale(this ResourceKey key, CultureInfo locale)
Parameters
keyResourceKeylocaleCultureInfo
Returns
Exceptions
- ArgumentOutOfRangeException
The locale is not supported by The Sims 4
GetStringTableLocale(ResourceKey)
Gets the locale of a string table resource in The Sims 4 based on its key
public static CultureInfo GetStringTableLocale(this ResourceKey key)
Parameters
keyResourceKey
Returns
Exceptions
- ArgumentOutOfRangeException
The high order byte of the instance does not correspond to a locale supported by The Sims 4
GetStringTableResourceKey(CultureInfo, uint, ulong)
Gets the ResourceKey of a string table resource in The Sims 4 based on its locale, group, and fullInstance
public static ResourceKey GetStringTableResourceKey(this CultureInfo locale, uint group, ulong fullInstance)
Parameters
localeCultureInfogroupuintfullInstanceulong
Returns
Exceptions
- ArgumentOutOfRangeException
The locale is not supported by The Sims 4