// Unity Callbacks public void Start() { m_gameServerInstance = this; m_logListeners = new List<Logger.LogDelegate>(); m_logger = new Logger(this.OnServerLogMessage); // Only need to do this once on creation InitializeConstants(); m_state= eState.stopped; m_dbInitRequest= null; }
public void StartServer() { if (m_state == eState.stopped) { DatabaseManagerConfig dbConfig = new DatabaseManagerConfig(DBConnectionString, MobDataDirectory, MapDataDirectory); // Start initializing the database m_state = eState.starting; m_dbInitRequest = new AsyncDatabaseInitializeRequest(dbConfig, m_logger); m_dbInitRequest.Execute(); } }