aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/riven_stack.h')
-rw-r--r--engines/mohawk/riven_stack.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/mohawk/riven_stack.h b/engines/mohawk/riven_stack.h
index 2af63b2838..8ab18a5f6f 100644
--- a/engines/mohawk/riven_stack.h
+++ b/engines/mohawk/riven_stack.h
@@ -64,6 +64,14 @@ public:
*/
int16 getNameId(const Common::String &name) const;
+ /**
+ * Add a name id => name mapping
+ *
+ * The implementation of the method is currently limited and
+ * does not allow retrieving an id from the name.
+ */
+ void registerName(uint16 nameId, const Common::String &name);
+
private:
void loadResource(MohawkEngine_Riven *vm, uint16 id);
@@ -114,6 +122,9 @@ public:
*/
int16 getIdFromName(RivenNameResource nameResource, const Common::String &name) const;
+ /** Add a name id => name mapping in a name list */
+ void registerName(RivenNameResource nameResource, uint16 nameId, const Common::String &name);
+
/** Get the id of a card in the card from its global identifier */
uint16 getCardStackId(uint32 globalId) const;