Stationeers

Stationeers

评价数不足
Hostile Lisp
   
奖励
收藏
已收藏
取消收藏
Mod
标签: StationeersMods
文件大小
发表于
更新日期
3.077 MB
10 月 23 日 上午 8:57
10 月 26 日 上午 10:38
3 项改动说明 ( 查看 )

订阅以下载
Hostile Lisp

描述
Allows programming the computer using lisp. Interpreter is sandboxed and is both memory and compute constrained so it is safe for use in multiplayer.

This requires StationeersLaunchpad to run: https://github.com/StationeersLaunchPad/StationeersLaunchPad/

The lisp interpreter is programmed using Common Lisp but still has parts of the standard library unimplemented. (Most notably setf, please use setq instead)

Available commands
  • (stationeers:device-container-id) => deviceid
  • (stationeers:device-enumerate &optional prefix) => (deviceid ...)
  • (stationeers:device-store deviceid logictype value) => T/Nil
  • (stationeers:device-load deviceid logictype) => Value/Nil
  • (stationeers:device-prefab-name deviceid) => String/Nil
  • (stationeers:device-stack-put deviceid address value) => T/Nil
  • (stationeers:device-stack-get deviceid address) => Value/Nil
  • (stationeers:device-stack-clear deviceid) => T/Nil
  • (stationeers:device-name-load deviceid) => String/Nil
  • (stationeers:device-name-store deviceid name) => T/Nil
  • (stationeers:device-slot-count deviceid) => Int/Nil
  • (stationeers:device-slot-store deviceid logictype value) => T/Nil
  • (stationeers:device-slot-load deviceids logictype) => Value/Nil
  • (stationeers:device-batch-load deviceids logictype value) => Value/Nil
  • (stationeers:device-batch-store deviceid logictype) => Value/Nil
  • (stationeers:device-batch-prefab-name deviceids) => Value/Nil
  • (stationeers:device-batch-name-load deviceids) => Value/Nil
  • (stationeers:game-time) => Number
  • (stationeers:string-hash string) => Number

Examples
Turn off all devices:
(stationeers:device-batch-store (stationeers:device-enumerate) 'on 0)