iamgreaser / seabase

Sea Base Omega - like Space Station 13, but IN... not space :(
GNU General Public License v2.0
1 stars 0 forks source link

Binary / text file loading #7

Open iamgreaser opened 11 years ago

iamgreaser commented 11 years ago

Here's the API.

common.fetch("bin", fname) is meant to return a function, which, when called, returns a string. This is a workaround for the deferred loading system, which works OK for functions, but if we were to do it for strings, we'd end up with a horrible metatable + wrapper function hell, so it's better to just have a __call which returns our intended string.

...that's it, really.