give the identity classes distinctive name fields

both would have been represented as "handle" to Lua
develop
Myk Taylor 2020-08-11 14:18:09 -07:00
parent c6f9eb519a
commit cfc736caa1
1 changed files with 2 additions and 2 deletions

@ -15,13 +15,13 @@ DFHACK_PLUGIN("xlsxreader");
struct xlsx_file_handle_identity : public compound_identity { struct xlsx_file_handle_identity : public compound_identity {
xlsx_file_handle_identity() xlsx_file_handle_identity()
:compound_identity(0, nullptr, nullptr, "handle") {}; :compound_identity(0, nullptr, nullptr, "xlsx_file_handle") {};
DFHack::identity_type type() override { return IDTYPE_OPAQUE; } DFHack::identity_type type() override { return IDTYPE_OPAQUE; }
}; };
struct xlsx_sheet_handle_identity : public compound_identity { struct xlsx_sheet_handle_identity : public compound_identity {
xlsx_sheet_handle_identity() xlsx_sheet_handle_identity()
:compound_identity(0, nullptr, nullptr, "handle") {}; :compound_identity(0, nullptr, nullptr, "xlsx_sheet_handle") {};
DFHack::identity_type type() override { return IDTYPE_OPAQUE; } DFHack::identity_type type() override { return IDTYPE_OPAQUE; }
}; };