codex 
Vars | |
all_entries | All entries. Unkeyed. |
---|---|
codex_categories | All categories. |
codex_index | Codex Database Connection |
dynamic_entries | All dynamic codex entries, Unkeyed. |
entries_by_path | All STATIC entries, By path. Does not include dynamic entries. |
entries_by_string | All entries, by name. |
index_disabled | Search Index breaker var, Automatically set if the DB index ever throws an error. |
index_file | The same as above, but sorted (?) |
index_generating | If the index is being built and a dynamic entry tries to register, queue it. |
search_cache | Search result cache, so we don't need to hit the DB every time. |
unregistered_dynamic_entries | Queued dynamic codex entries, Unkeyed. |
Procs | |
cache_dynamic_record | Queue a new dynamic record for insertion to the dynamic search index. |
get_codex_entry | Returns a codex entry for the given query. May return a list if multiple are found, or null if none. |
prepare_search_database | Prepare the search database. |
present_codex_entry | Presents a codex entry to a mob. If it receives a list of entries, it will prompt them to choose one. |
present_codex_search | Presents a list of codex entries to a mob. |
retrieve_entries_for_string | Perform a full-text search through all codex entries. Entries matching the query by name will be shown first. Results are cached. Relies on the index database. |
text_search_no_db | Straight-DM implimentation of full text search. Objectively garbage. Does not use the DB. Used when database loading is skipped. Argument has already been sanitized. Safety checks have already been done. Cache has already been checked. |
Var Details
all_entries 
All entries. Unkeyed.
codex_categories 
All categories.
codex_index 
Codex Database Connection
dynamic_entries 
All dynamic codex entries, Unkeyed.
entries_by_path 
All STATIC entries, By path. Does not include dynamic entries.
entries_by_string 
All entries, by name.
index_disabled 
Search Index breaker var, Automatically set if the DB index ever throws an error.
index_file 
The same as above, but sorted (?)
index_generating 
If the index is being built and a dynamic entry tries to register, queue it.
search_cache 
Search result cache, so we don't need to hit the DB every time.
unregistered_dynamic_entries 
Queued dynamic codex entries, Unkeyed.
Proc Details
cache_dynamic_record
Queue a new dynamic record for insertion to the dynamic search index.
get_codex_entry
Returns a codex entry for the given query. May return a list if multiple are found, or null if none.
prepare_search_database
Prepare the search database.
present_codex_entry
Presents a codex entry to a mob. If it receives a list of entries, it will prompt them to choose one.
present_codex_search
Presents a list of codex entries to a mob.
retrieve_entries_for_string
Perform a full-text search through all codex entries. Entries matching the query by name will be shown first. Results are cached. Relies on the index database.
text_search_no_db
Straight-DM implimentation of full text search. Objectively garbage. Does not use the DB. Used when database loading is skipped. Argument has already been sanitized. Safety checks have already been done. Cache has already been checked.