mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
Updated Data model (markdown)
parent
a58afc72c7
commit
5cb0a86b2f
1 changed files with 8 additions and 0 deletions
|
|
@ -246,3 +246,11 @@ Notes (legends) data is stored in unordered array of objects: `notes`. Object st
|
|||
* `legend`: `string` - note text in html
|
||||
|
||||
## Name bases
|
||||
Name generator consumes training sets of real-world town names (with the exception of fantasy name bases) stored in `nameBases` array, that is available globally. Each array element represent a separate base. Base structure is:
|
||||
* `i`: `number` - base id, always equal to the array index
|
||||
* `name`: `string` - names base proper name
|
||||
* `b`: `string` - long string containing comma-separated list of names
|
||||
* `min`: `number` - recommended minimal length of generated names. Generator will adding new syllables until min length is reached
|
||||
* `max`: `number` - recommended maximal length of generated names. If max length is reached, generator will stop adding new syllables
|
||||
* `d`: `string` - letters that are allowed to be duplicated in generated names
|
||||
* `m`: `number` - if multi-word name is generated, how many of this cases should be transformed into a single word. `0` means multi-word names are not allowed, `1` - all generated multi-word names will stay as they are
|
||||
Loading…
Add table
Add a link
Reference in a new issue