Skip to content

Commit

Permalink
Updated c_string_id
Browse files Browse the repository at this point in the history
  • Loading branch information
twist84 committed Sep 11, 2024
1 parent 9ea8889 commit 661a690
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion game/source/cseries/cseries.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1486,13 +1486,17 @@ extern char* tag_to_string(tag _tag, char* buffer);
struct c_string_id
{
public:
c_string_id() : m_value() {}
c_string_id() : m_value(NONE) {}
c_string_id(long value) : m_value(value) {}
c_string_id(c_string_id const& other) : m_value(other.m_value) {}

char const* get_string();
char const* get_string() const;
long get_value() const { return m_value; }

bool operator==(c_string_id const& other) const { return m_value == other.m_value; }
void operator=(c_string_id const& other) { m_value = other.m_value; }

protected:
string_id m_value;
};
Expand Down

0 comments on commit 661a690

Please sign in to comment.