aboutsummaryrefslogtreecommitdiff
path: root/src/lua/src
ModeNameSize
-rw-r--r--CMakeLists.txt865logplain
-rw-r--r--lapi.c22708logplain
-rw-r--r--lapi.h262logplain
-rw-r--r--lauxlib.c17417logplain
-rw-r--r--lauxlib.h5777logplain
-rw-r--r--lbaselib.c17046logplain
-rw-r--r--lcode.c21335logplain
-rw-r--r--lcode.h2750logplain
-rw-r--r--ldblib.c10069logplain
-rw-r--r--ldebug.c16840logplain
-rw-r--r--ldebug.h1061logplain
-rw-r--r--ldo.c14851logplain
-rw-r--r--ldo.h1897logplain
-rw-r--r--ldump.c3114logplain
-rw-r--r--lfunc.c4 { public: ClientActiveObject(u16 id, IGameDef *gamedef, ClientEnvironment *env); virtual ~ClientActiveObject(); virtual void addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc, IrrlichtDevice *irr){} virtual void removeFromScene(bool permanent){} // 0 <= light_at_pos <= LIGHT_SUN virtual void updateLight(u8 light_at_pos){} virtual v3s16 getLightPosition(){return v3s16(0,0,0);} virtual core::aabbox3d<f32>* getSelectionBox(){return NULL;} virtual bool getCollisionBox(aabb3f *toset){return false;} virtual bool collideWithObjects(){return false;} virtual v3f getPosition(){return v3f(0,0,0);} virtual scene::ISceneNode *getSceneNode(){return NULL;} virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;} virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;} virtual WieldMeshSceneNode *getWieldMeshSceneNode(){return NULL;} virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;} virtual bool isPlayer() const {return false;} virtual bool isLocalPlayer() const {return false;} virtual void setAttachments(){} virtual bool doShowSelectionBox(){return true;} virtual void updateCameraOffset(v3s16 camera_offset){}; // Step object in time virtual void step(float dtime, ClientEnvironment *env){} // Process a message sent by the server side object virtual void processMessage(const std::string &data){} virtual std::string infoText() {return "";} virtual std::string debugInfoText() {return "";} /* This takes the return value of ServerActiveObject::getClientInitializationData */ virtual void initialize(const std::string &data){} // Create a certain type of ClientActiveObject static ClientActiveObject* create(u8 type, IGameDef *gamedef, ClientEnvironment *env); // If returns true, punch will not be sent to the server virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=NULL, float time_from_last_punch=1000000) { return false; } protected: // Used for creating objects based on type typedef ClientActiveObject* (*Factory)(IGameDef *gamedef, ClientEnvironment *env); static void registerType(u16 type, Factory f); IGameDef *m_gamedef; ClientEnvironment *m_env; private: // Used for creating objects based on type static std::map<u16, Factory> m_types; }; struct DistanceSortedActiveObject { ClientActiveObject *obj; f32 d; DistanceSortedActiveObject(ClientActiveObject *a_obj, f32 a_d) { obj = a_obj; d = a_d; } bool operator < (const DistanceSortedActiveObject &other) const { return d < other.d; } }; #endif
p;id=5cf911ffe140e447e6ec3791e2244ae5dd0361d8'>plain -rw-r--r--lstring.h814logplain -rw-r--r--lstrlib.c23481logplain -rw-r--r--ltable.c16263logplain -rw-r--r--ltable.h1184logplain -rw-r--r--ltablib.c7343logplain -rw-r--r--ltm.c1650logplain -rw-r--r--ltm.h1018logplain -rw-r--r--lua.c10163logplain -rw-r--r--lua.h11688logplain -rw-r--r--luac.c4661logplain -rw-r--r--luaconf.h22299logplain -rw-r--r--lualib.h1026logplain -rw-r--r--lundump.c4629logplain -rw-r--r--lundump.h890logplain -rw-r--r--lvm.c23126logplain -rw-r--r--lvm.h1159logplain -rw-r--r--lzio.c1628logplain -rw-r--r--lzio.h1556logplain -rw-r--r--print.c4944logplain