basic nav height query

This commit is contained in:
Robin Appelman 2020-05-02 16:55:41 +02:00
commit 94d7095a06
5 changed files with 158 additions and 6 deletions

29
include/sourcenav.inc Normal file
View file

@ -0,0 +1,29 @@
#if defined _sourcenav_included
#endinput
#endif
#define _sourcenav_included
methodmap SourceNav < Handle {
public native SourceNav(char[] path);
public native float query(float x, float y, float z_guess);
}
public Extension __ext_sourcenav =
{
name = "sourcenav",
file = "sourcenav.ext",
autoload = 1,
#if defined REQUIRE_EXTENSIONS
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_EXTENSIONS
public void __ext_sourcenav_SetNTVOptional()
{
}
#endif