LeMagnesium b8cbe3b75b Set_node and mapblock implosion fixed, invref in development
* Inventory: Two functions added : is_empty(listname) and get_size(listname), both working in a similar fashion as their minetest API counterpart
 * Map:
  - Implosion fixed. The num_name_id_mappings variable is correctly set, all data are written to the correct byte streams. A function is added to check whether a position given to a function (list get/set_node) is correct and the mapblock is loaded.
  - Data storage type for static object data fixed
  - MapBlocks now have a get_meta(abspos) method. Abspos is the integer representing the position of the querried metadata inside the mapblock
  - MapVessels default to forcefully save a flagged mapblock before unloading it
  - A new method in MapInterface can flag a mapblock as modified. It is used in member methods to deal with the modification cache flags more easily
  - MapInterface has got another new function to check whether a mapblock is loaded or not and try to load it, all depending on a given position
  - MapInterface's save method is fixed
  - MapInterfaces can return a node's metadata using the get_meta(pos) method. It determines what mapblock contains the quierried node, and use the said mapblock's get_meta method to return a NodeMetaRef object
 * Metadata : Strings are stored as and decoded from arrays of integers, easier to convert from bytes without knowing what is float, what is int, and what is string
 * Nodes : The position argument in a Node object is now a key argument. The only mandatory parameter is the itemstring
 * Test : testSetNode now completly working. It doesn't change the node in (0,0,0) anymore. This node is a chest in the test map and is used to test metadata and inventory manipulation in the new invManip function called upon execution of test.py
2016-02-14 21:31:23 +01:00
2016-01-25 20:01:29 +01:00
2016-02-07 15:51:56 +01:00
2016-02-09 08:12:09 +00:00
2016-02-09 08:12:09 +00:00

Python Minetest

A library to use on Minetest's files ßÿ Mg/LeMagnesium

License : WTFPL (so far) Note: Still unstable to use

Description
No description provided
Readme 170 KiB
Languages
Python 99.1%
Lua 0.9%