mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Tool definition transfer to client
This commit is contained in:
parent
0754f2a7af
commit
4b8e4dae58
7 changed files with 92 additions and 9 deletions
|
@ -72,6 +72,8 @@ public:
|
|||
virtual std::string getImagename(const std::string &toolname) const =0;
|
||||
virtual ToolDiggingProperties getDiggingProperties(
|
||||
const std::string &toolname) const =0;
|
||||
|
||||
virtual void serialize(std::ostream &os)=0;
|
||||
};
|
||||
|
||||
class IWritableToolDefManager : public IToolDefManager
|
||||
|
@ -85,6 +87,7 @@ public:
|
|||
const std::string &toolname) const =0;
|
||||
|
||||
virtual bool registerTool(std::string toolname, const ToolDefinition &def)=0;
|
||||
virtual void clear()=0;
|
||||
|
||||
virtual void serialize(std::ostream &os)=0;
|
||||
virtual void deSerialize(std::istream &is)=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue