mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:43:22 +02:00
ConnectionInfo
- Added documentation to `T getDB(T)(string)` and `updateDB(string, string)`
This commit is contained in:
parent
4c3afb5027
commit
1da039dcb2
@ -135,11 +135,27 @@ public shared struct ConnectionInfo
|
||||
this.fakeLag = fakeLag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a value in the key-value pair database
|
||||
*
|
||||
* Params:
|
||||
* key = the key to set
|
||||
* value = the value to set to
|
||||
*/
|
||||
public void updateDB(string key, string value)
|
||||
{
|
||||
db[key] = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a value from the key-value pair database
|
||||
*
|
||||
* Params:
|
||||
* key = the key to lookup
|
||||
* Returns: the value as type T, if not able to convert then T.init
|
||||
* Throws:
|
||||
* BirchwoodException if the key is not found
|
||||
*/
|
||||
public T getDB(T)(string key)
|
||||
{
|
||||
import std.stdio;
|
||||
|
Loading…
Reference in New Issue
Block a user