aboutsummaryrefslogtreecommitdiff
path: root/games/minimal
Commit message (Expand)AuthorAge
...
* Allow groups in crafting recipesPerttu Ahola2012-06-06
* Add after_destruct and cache the existence of on_construct, on_destruct and a...Perttu Ahola2012-06-05
* place_node, dig_node and punch_node; an in-game tester tool; remove old codePerttu Ahola2012-06-05
* Add InvRef:is_empty(listname) and make chests/furnaces not diggable if not em...darkrose2012-06-03
* fix locked chest to not destroy denied items (minimal game)darkrose2012-06-03
* Add fire visualization to minimal furnace menuPerttu Ahola2012-06-03
* Use proper furnace cook timePerttu Ahola2012-06-03
* Lua implementation of furnace with visible active statedarkrose2012-06-03
* Implement locked chest; add after_place_node and after_dig_node node callbacksPerttu Ahola2012-06-03
* minetest.get_craft_resultPerttu Ahola2012-06-03
* Implement sign using form field protocolPerttu Ahola2012-06-03
* Properly create metadata inventories in minimalPerttu Ahola2012-06-03
* Random node metadata thingsPerttu Ahola2012-06-03
* Attempt to begin to implement chests and furnace in Lua (with problems)Perttu Ahola2012-06-03
* Add missing mapgen.lua to games/minimalPerttu Ahola2012-04-06
* experimental:soundblock dig_immediate=3Perttu Ahola2012-04-06
* Make the minimal development test somewhat playable by adding ore generation ...Perttu Ahola2012-04-05
* Fix sound direction and add experimental:soundblock alias sb in minimal for t...Perttu Ahola2012-04-04
* initial_properties field in entity definitionPerttu Ahola2012-03-31
* Add minetest.get_connected_players()Perttu Ahola2012-03-30
* ObjectRef:set_armor_groups() and ObjectRef:set_properties() - works on player...Perttu Ahola2012-03-30
* Modify minimal/give_initial_stuff to always give stuffPerttu Ahola2012-03-29
* Rework tool_capabilities a bit (maxwear->uses, scale dig time according to le...Perttu Ahola2012-03-29
* Make mapgen use mapgen_* node aliases rather than the LEGN macroPerttu Ahola2012-03-28
* Add PseudoRandom in Lua APIPerttu Ahola2012-03-28
* Add minetest.after(time, func)Perttu Ahola2012-03-27
* Add default_grass_footstep.1.ogg as a test sound in minimalPerttu Ahola2012-03-27
* Add games/minimal/game.confPerttu Ahola2012-03-26
* Move games/minetest to games/minimal and update README.txtPerttu Ahola2012-03-26
ytes, 0, 16); } }; class Address { public: Address(); Address(u32 address, u16 port); Address(u8 a, u8 b, u8 c, u8 d, u16 port); Address(const IPv6AddressBytes * ipv6_bytes, u16 port); bool operator==(Address &address); bool operator!=(Address &address); void Resolve(const char *name); struct sockaddr_in getAddress() const; unsigned short getPort() const; void setAddress(u32 address); void setAddress(u8 a, u8 b, u8 c, u8 d); void setAddress(const IPv6AddressBytes * ipv6_bytes); struct sockaddr_in6 getAddress6() const; int getFamily() const; bool isIPv6() const; void setPort(unsigned short port); void print(std::ostream *s) const; std::string serializeString() const; private: unsigned int m_addr_family; union { struct sockaddr_in ipv4; struct sockaddr_in6 ipv6; } m_address; u16 m_port; // Port is separate from sockaddr structures }; class UDPSocket { public: UDPSocket(bool ipv6); ~UDPSocket(); void Bind(unsigned short port); //void Close(); //bool IsOpen(); void Send(const Address & destination, const void * data, int size); // Returns -1 if there is no data int Receive(Address & sender, void * data, int size); int GetHandle(); // For debugging purposes only void setTimeoutMs(int timeout_ms); // Returns true if there is data, false if timeout occurred bool WaitData(int timeout_ms); private: int m_handle; int m_timeout_ms; int m_addr_family; }; #endif