RPG/include/Obj.h

31 lines
360 B
C
Raw Normal View History

2024-02-22 00:32:57 -08:00
#pragma once
#include "Hash.h"
#include <string>
class Obj
{
private:
size_t hashId;
std::string id;
public:
Obj();
Obj(std::string id);
Obj(Obj&& obj) noexcept;
Obj(const Obj& obj);
Obj& operator=(Obj&& obj) noexcept;
Obj& operator=(const Obj& obj);
size_t GetHashId() const;
void SetId(std::string newId);
std::string GetId() const;
};