Class CommunicatorFactory
Factory class for an ICommunicator instance. This is used to the Academy at startup.
By default, on desktop platforms, an ICommunicator will be created and attempt to connect
to a trainer. This behavior can be prevented by setting Enabled to false
before the Academy is initialized.
Inheritance
CommunicatorFactory
Syntax
public static class CommunicatorFactory
Properties
CommunicatorRegistered
Declaration
public static bool CommunicatorRegistered { get; }
Property Value
Enabled
Whether or not an ICommunicator instance will be created when the Academy is initialized.
Changing this has no effect after the Academy has already been initialized.
Declaration
public static bool Enabled { get; set; }
Property Value
Methods
ClearCreator()
Declaration
public static void ClearCreator()
Register<T>(Func<T>)
Declaration
public static void Register<T>(Func<T> creator)
where T : ICommunicator
Parameters
Type |
Name |
Description |
Func<T> |
creator |
|
Type Parameters