initial dig functionality; need to clean up kruft

This commit is contained in:
jadebenn
2023-11-18 18:43:47 -06:00
parent 74047bcc9c
commit 119968a90c
6 changed files with 162 additions and 29 deletions

View File

@@ -17,6 +17,13 @@ public:
void OnStartup(Entity* self) override;
void OnDie(Entity* self, Entity* killer) override;
/**
* Invoked when a player interacts with treasure.
* @param self the entity the script belongs to
* @param user the entity that used the treasure
*/
void OnUse(Entity* self, Entity* user) override;
static Entity* GetClosestTresure(NiPoint3 position);
private: