Lobby 3d
This commit is contained in:
1 parent
fd5e92d0f5
commit
9f898c04dd
415 files changed
+6241617
-633464
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// Собирает Luau-файл для Studio: модель lobby_guild_hall (bbmodel-to-luau.js) + tools/build-guild-hall2.lua.
|
||||
// node tools/build-guild-hall2.js <out.lua>
|
||||
const fs = require('fs'), path = require('path'), { execFileSync } = require('child_process');
|
||||
const ROOT = path.join(__dirname, '..');
|
||||
const out = process.argv[2] || path.join(ROOT, 'tools', 'guild-hall2-full.lua');
|
||||
const lua = path.join(ROOT, 'tools', 'lobby-models', 'lobby_guild_hall.lua');
|
||||
execFileSync('node', [path.join(__dirname, 'bbmodel-to-luau.js'), path.join(ROOT, 'assets', 'props', 'lobby_guild_hall.bbmodel'),
|
||||
path.join(ROOT, 'assets', 'props', 'lobby_guild_hall_palette.png'), lua, 'lobby_guild_hall'], { stdio: 'inherit' });
|
||||
const code = '-- СГЕНЕРИРОВАНО tools/build-guild-hall2.js\nlocal BUILD = {}\nBUILD.hall = (function()\n'
|
||||
+ fs.readFileSync(lua, 'utf8') + '\nend)()\n' + fs.readFileSync(path.join(__dirname, 'build-guild-hall2.lua'), 'utf8');
|
||||
fs.writeFileSync(out, code, 'utf8');
|
||||
console.log('->', out, (code.length / 1024).toFixed(0) + ' KB');
|
||||
Reference in new issue
Block a user