mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Change Plugin methods to static
This commit is contained in:
parent
c6f54fa3cb
commit
ff862f1dea
|
@ -10,23 +10,23 @@ class Plugin
|
|||
{
|
||||
public:
|
||||
template<typename T>
|
||||
decltype(auto) get(const T& obj)
|
||||
static decltype(auto) get(const T& obj)
|
||||
{
|
||||
return obj._get();
|
||||
}
|
||||
template<typename T,typename U>
|
||||
void set(T& obj,U&& value)
|
||||
static void set(T& obj,U&& value)
|
||||
{
|
||||
obj._set(value);
|
||||
}
|
||||
template<typename T>
|
||||
void clear(T& obj)
|
||||
static void clear(T& obj)
|
||||
{
|
||||
obj._clear();
|
||||
}
|
||||
|
||||
template<typename T,typename U>
|
||||
void set_no_delete(T& obj,U&& value)
|
||||
static void set_no_delete(T& obj,U&& value)
|
||||
{
|
||||
obj._set_no_delete(value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user