예제 #1
0
 /// <summary>
 /// Prepare the user module for use. Attempt to
 /// pull in the login config.
 /// </summary>
 public override void OnStart()
 {
     if (Engine.Type == GameEngineType.Client)
     {
         IConfigContainer configContainer = GetModule <ConfigModule>();
         LoginConfig = configContainer.GetConfig <LoginConfig>();
     }
 }
예제 #2
0
 /// <summary>
 /// Get the specific config file for the type
 /// passed in.
 /// </summary>
 /// <typeparam name="U">The type of config file to look for.</typeparam>
 /// <returns>The found, or newly created config.</returns>
 protected U GetConfig <U>() where U : class, IConfig
 {
     return(configContainer.GetConfig <U>());
 }