2014-10-01 19:00:59 +03:00

33 lines
631 B
C++

// http://www.apache.org/licenses/LICENSE-2.0
// Copyright 2014 Perttu Ahola <celeron55@gmail.com>
#pragma once
#include "interface/event.h"
#include "interface/server.h"
#include "interface/module.h"
#include <functional>
namespace Urho3D
{
class Context;
class Scene;
};
namespace entitysync
{
namespace magic = Urho3D;
struct Interface
{
};
inline bool access(interface::Server *server,
std::function<void(entitysync::Interface*)> cb)
{
return server->access_module("entitysync", [&](interface::Module * module){
cb((entitysync::Interface*)module->check_interface());
});
}
}
// vim: set noet ts=4 sw=4: