1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Scripting WIP

This commit is contained in:
Perttu Ahola
2011-11-12 15:14:24 +02:00
parent 38944467d3
commit 75a0ca6bd6
14 changed files with 148 additions and 15 deletions

View File

@@ -52,6 +52,8 @@ public:
InventoryItem* createInventoryItem();
InventoryItem* createPickedUpItem(){return createInventoryItem();}
void rightClick(Player *player);
float getMinimumSavedMovement(){ return 0.1*BS; }
private:
std::string m_inventorystring;
v3f m_speed_f;
@@ -218,6 +220,7 @@ public:
void setPos(v3f pos);
void moveTo(v3f pos, bool continuous);
float getMinimumSavedMovement();
private:
void sendPosition(bool do_interpolate, bool is_movement_end);