implements essential tools for locating and reading files
- -Modules
-binary | -read and write (little endian) binary. | -
paths | -mod utilities -find the paths - find mod information | -
diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 9be9c55..0000000 --- a/docs/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -
-binary
read and write (little endian) binary.
- located in leef.binary
.
read_single (function) | -read an IEEE 754 single precision (32-bit) floating point number | -
read_double (function) | -read an IEEE 754 double-precision (64-bit) floating point number | -
read_uint (function, int) | -read an unsigned integer of any given length | -
read_uint (function, int) | -read a signed integer of any given length | -
fround (number) | -"returns nearest 32-bit single precision float representation of a number" (or something) | -
read_byte () | -read_byte is a param name which refers to a function which reads the next byte- returning a whole number between 0-255. |
-
write_byte () | -write_byte is similar to read_byte, however it is given an input and expected to write it to the file. |
-
read_byte
function.
- read_byte
or write_byte
function as inputs
- read_byte
is a param name which refers to a function which reads the next byte- returning a whole number between 0-255.
function byte()
- left = left - 1
- return assert(file_handle:read(1):byte())
- --reads the next chracter, and converts it to a "numerical code" using string.byte()
- --it's important that this function moves forward in the file stream (as :read(1) does)
-end
-
-
-
-
-
- write_byte
is similar to read_byte, however it is given an input and expected to write it to the file.
- (example needed)
-
-
-
-
-
-
-
-paths
mod utilities -find the paths - find mod information
-- -
- - -media_paths | -paths of loaded media. | -
modname_by_media | -modname by media. | -
overriden_media_paths | -overriden media paths. | -
overriden_media_paths | -mods with overriden media (indexed by media). | -
{
- ["model.b3d"] = "C:/path/minetest/mods/mod2/models/model.b3d"
- ["img.png"] = "C:/path/minetest/mods/mod2/textures/img.png"
-}
-
-NOTE: "loaded" meaning the final mediapath- what the client loads. - - - - - - - -
modname by media. - a list of mods by indexed by the name of loaded media
-{
- ["model.b3d"] = "mod2"
-}
-
-
-
-
-
-
-
-
-
-overriden media paths. - a list of media paths that were overriden by conflicting model names- the unloaded media, i.e:
-{
- ["model.b3d"] = {
- "C:/path/minetest/mods/mod1/models/model.b3d"
- }
-}
-
-
-
-
-
-
-
-
-
-mods with overriden media (indexed by media). - a list of mods that have overriden media, by media names
-{
- ["model.b3d"] = {
- "mod1",
- }
-}
-
-
-
-
-
-
-
-
-
-