Advertisement
Guest User

CCLITE API HELP FILE

a guest
Sep 19th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. This fork of the CCLite emulator provides an api called cclite, that allows access to various extended features in the CCLite emulator.
  2.  
  3. This feature can be turned on or off by changing the configuration setting enableAPI_cclite
  4. > cclite.traceback()
  5. A copy of debug.traceback(), useful if you need to track down code flow.
  6. > cclite.log( msg )
  7. Logs anything given to the Love2D console.
  8. > cclite.message(string sMessage)
  9. Spawns a message on the display.
  10. > cclite.peripheralAttach(string sSide, string sType)
  11. Attaches a virtual peripheral of type sType to side sSide. Throws an error if the specified type does not exist or if something is already attached to the specified side.
  12. > cclite.peripheralDetach(string sSide)
  13. Removes a virtual peripheral from side sSide. Throws an error if there is no peripheral attached to the specified side.
  14. > cclite.call(string sSide, string sMethod, ...)
  15. Calls a function from the api the virtual peripheral provides. Please note that this api set is different from the one usable from peripheral.call().
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement