Proper town logic; needs lots of fixing

This commit is contained in:
Segey Lapin
2021-10-25 13:36:58 +03:00
parent aef8a11cc4
commit 6442245253
5 changed files with 92 additions and 28 deletions

View File

@@ -118,6 +118,8 @@ public:
PoolVector<Vector2> get_site_polygon_2d(int site);
PoolVector<Vector3> get_site_polygon_3d(int site);
PoolVector<int> get_here_sites(const Vector3 &pos);
bool site_is_town(int site) const;
bool site_is_farm(int site) const;
inline float get_site_avg_height(int site)
{
return rg->get_site_avg_height(site);
@@ -126,5 +128,17 @@ public:
{
rg->save_json(path);
}
inline PoolVector<Vector3> get_site_border(int site)
{
return rg->get_site_border(site);
}
inline int get_site_count() const
{
return rg->get_site_count();
}
inline int get_site_type(int site) const
{
return rg->get_site_type(site);
}
};