- More docs
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-26 23:12:06 +02:00
parent e9cb212194
commit e60e3c9506
1 changed files with 17 additions and 3 deletions

View File

@ -371,6 +371,20 @@ public struct Registry
newEntry(name, ConfigEntry.ofArray(array));
}
/**
* Sets the entry at the given name
* to the provided entry
*
* This will throw an exception if
* the entry trying to be set does
* not yet exist
*
* Params:
* name = the key
* entry = the configuration
* entry
*/
public void setEntry(string name, ConfigEntry entry)
{
newEntry(name, entry, this.allowOverwriteEntry, false);
@ -379,15 +393,15 @@ public struct Registry
// ALlows overwriting ALWAYS
// or should it NOT?
// or should it NOT?
/**
* Assigns the provided configuration
* entry to the provided name
*
* Take note that using this method
* will both create the entry if it
* does not yet exist
* will create the entry if it does
* not yet exist
*
* Params:
* entry = the entry to add