Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
worldobjectbindings.h
1 #pragma once
2 
3 #include "bindings.h"
4 
5 
6 class WorldObjectBindings : public Bindings {
7 public:
9 
10 
11 protected:
12  virtual void bind() override;
13 
14  apikey apiPlayerShip();
15  apikey apiCreateShip(const std::string& name);
16  apikey apiCreateWorldObject(const std::string& name);
17  int apiSpawn(apikey worldObject);
18  int apiRemove(apikey worldObject);
19 
20  int apiSetPosition(apikey worldObject, const glm::vec3& position);
21  int apiSetOrientation(apikey worldObject, const glm::vec3& orientation);
22  glm::vec3 apiPosition(apikey worldObject);
23  glm::vec3 apiOrientation(apikey worldObject);
24  int apiSetShowOnHud(apikey worldObject, bool show);
25  int apiSetCanLockOn(apikey worldObject, bool lockon);
26 
27  apikey apiOnWorldObjectDestroyed(apikey worldObject, const std::string& callback);
28  apikey apiOnAABBEntered(apikey worldObject, const glm::vec3& llf, const glm::vec3& urb, const std::string& callback);
29 };
30 
Definition: gameplayscript.h:17
Definition: bindings.h:13
Definition: worldobjectbindings.h:6