[This is preliminary documentation and is subject to change.]
Reads command-line switches and sets up paths and logging.
This should be called before any other library function.
Note to frontend devs: Subscribe to log-related events before calling this.
Does not raise any events besides Logger.Logged.
Throws exceptions on failure.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)
Syntax
| C# |
public static void InitLibrary( IEnumerable<string> rawArgs )
Parameters
- rawArgs
- IEnumerable<(Of <(<'String>)>)>
string arguments passed to the frontend (if any).
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | If library is already initialized. |
| System.IO..::..IOException | Working path, log path, or map path could not be set. |