mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-20 12:47:37 +07:00
Mod subtitles
This commit is contained in:
@ -5,15 +5,7 @@ let modName = "none"
|
||||
|
||||
const log = (context, obj) => Vars.mods.scripts.log(context, String(obj))
|
||||
const print = text => log(modName + "/" + scriptName, text)
|
||||
const readString = path => Vars.mods.scripts.readString(path)
|
||||
const readBytes = path => Vars.mods.scripts.readBytes(path)
|
||||
const loadMusic = path => Vars.mods.scripts.loadMusic(path)
|
||||
const loadSound = path => Vars.mods.scripts.loadSound(path)
|
||||
|
||||
const readFile = (purpose, ext, cons) => Vars.mods.scripts.readFile(purpose, ext, cons);
|
||||
const readBinFile = (purpose, ext, cons) => Vars.mods.scripts.readBinFile(purpose, ext, cons);
|
||||
const writeFile = (purpose, ext, str) => Vars.mods.scripts.writeFile(purpose, ext, str);
|
||||
const writeBinFile = (purpose, ext, bytes) => Vars.mods.scripts.writeBinFile(purpose, ext, bytes);
|
||||
const newFloats = cap => Vars.mods.getScripts().newFloats(cap);
|
||||
|
||||
//these are not strictly necessary, but are kept for edge cases
|
||||
|
Reference in New Issue
Block a user