moved file functions into another file
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Thu, 27 Sep 2012 19:53:58 +0000 (15:53 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Thu, 27 Sep 2012 19:53:58 +0000 (15:53 -0400)
commitbca60389739104ebeb7d1fd0da4f4623b4088010
tree5b8f742166e485af23fbcbbd51fb1436f5365dda
parent60f2da4738238be5d9d0604c2c25b729423d2a0c
moved file functions into another file

instead of having everything in one file, the code should be easier to
read now that it is split up.

in order to give the included file access to outer scope variables in
init.lua, those variables cannot be local. however, this means that they
also become accessible to other mods. furthermore, they are accessible
even without a prefix like this: "xp.varname".

to solve this issue, i've added "xp_" as a prefix to outer scope
variables and functions in this mod, like the mobf mod does.
filehandling.lua [new file with mode: 0644]
init.lua