This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
dev:core:funref:decode_pos [2020-01-22 10:53] admin ↷ Page moved from reference:advtrains:decode_pos to dev:core:funref:decode_pos |
dev:core:funref:decode_pos [2020-01-22 10:53] (current) admin ↷ Links adapted because of a move operation |
||
---|---|---|---|
Line 11: | Line 11: | ||
===== Extended description ===== | ===== Extended description ===== | ||
This function creates a string from the given Minetest position vector, suitable for use as a table index. | This function creates a string from the given Minetest position vector, suitable for use as a table index. | ||
- | See also '' | + | See also '' |
===== Parameters ===== | ===== Parameters ===== | ||
- | * '' | + | * '' |
===== Returns ===== | ===== Returns ===== | ||
Line 33: | Line 33: | ||
===== How it works internally ===== | ===== How it works internally ===== | ||
- | This function converts back strings created by '' | + | This function converts back strings created by '' |
- Y coordinate is encoded in characters 1 to 4. | - Y coordinate is encoded in characters 1 to 4. | ||
- X coordinate is encoded in characters 5 to 8. | - X coordinate is encoded in characters 5 to 8. |