Created AnimViewMap
This commit is contained in:
@@ -5,15 +5,12 @@
|
||||
#include "animqueue.hpp"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
|
||||
class Viewer {
|
||||
private:
|
||||
std::unique_ptr<World> world_;
|
||||
std::vector<int64_t> tangibles_;
|
||||
std::unordered_map<int64_t, AnimView> anim_view_;
|
||||
|
||||
AnimViewMap view_map_;
|
||||
|
||||
public:
|
||||
Viewer();
|
||||
@@ -22,22 +19,18 @@ public:
|
||||
// Get the lua state for interaction.
|
||||
//
|
||||
lua_State *get_lua_state() { return world_->get_lua_state(); }
|
||||
|
||||
|
||||
// Get the player ID of the current player.
|
||||
//
|
||||
int64_t get_player_id();
|
||||
|
||||
// Update the view.
|
||||
// Update the view map.
|
||||
//
|
||||
void update_view();
|
||||
void update_view_map() { world_->update_view_map(&view_map_, 1, 100); }
|
||||
|
||||
// Get a list of the tangibles in viewing radius of the player.
|
||||
// Get the view map.
|
||||
//
|
||||
const std::vector<int64_t> &get_tangibles_near_player();
|
||||
|
||||
// Get the animation viewer of the specified tangible.
|
||||
//
|
||||
AnimView *get_animation_view(int64_t id);
|
||||
const AnimViewMap &get_view_map() { return view_map_; }
|
||||
|
||||
// Get the menu of the specified tangible.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user