InterfaceResolver
A class in Root.Township, Features.Meta.Resolvers.
Obsolete static service locator for platform services, used until dependency injection covers them. In this build only IVoiceChat gets a real instance; the shop, Oculus, purchase and friend services resolve to null unless overridden.
- Listed in ATT, Features and other game namespaces
- Attributes
Obsolete
Constructors
| Member | What it is |
|---|---|
InterfaceResolver() | Creates an InterfaceResolver with default values. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private static readonly HashSet<Type> instanceOverrides | Service types replaced through SetInstanceOverride. |
private static IOculusWrapper iOculusWrapper | Backing field for IOculusWrapper. |
private static IPlatformFriendService iPlatformFriendService | Backing field for IPlatformFriendService. |
private static IPurchaseConsumer iPurchaseConsumer | Backing field for IPurchaseConsumer. |
private static IShopController iShopController | Backing field for IShopController. |
private static IVoiceChat iVoiceChat | Backing field for IVoiceChat. |
Properties
| Member | What it is |
|---|---|
static IOculusWrapper IOculusWrapper { get; } | The Oculus wrapper, created on first use. Null in this build unless overridden. |
static IPlatformFriendService IPlatformFriendService { get; } | The platform friend service, created on first use. Null in this build unless overridden. |
static IPurchaseConsumer IPurchaseConsumer { get; } | The purchase consumer, created on first use. Null in this build unless overridden. |
static IShopController IShopController { get; } | The shop controller, created on first use. Null in this build unless overridden. |
static IVoiceChat IVoiceChat { get; } | The voice chat service, a VoiceChat created on first use. |
Methods
5 private and internal methods
| Member | What it is |
|---|---|
private static IOculusWrapper CreateOculusWrapper() | Returns null in this build. |
private static IPlatformFriendService CreatePlatformFriendService() | Returns null in this build. |
private static IPurchaseConsumer CreatePurchaseConsumer() | Returns null in this build. |
private static IShopController CreateShopController() | Returns null in this build. |
private static IVoiceChat CreateVoiceChat() | Creates a new VoiceChat. |