Read object script paths from params again taking relative paths into account
also made build artifact names a bit more consistent
This commit is contained in:
parent
83686a816c
commit
4c90472977
4
.github/workflows/build_macos.yml
vendored
4
.github/workflows/build_macos.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: OpenStarbound-Dev-macOS-Intel
|
name: OpenStarbound-macOS-Intel
|
||||||
path: dist/*
|
path: dist/*
|
||||||
|
|
||||||
build-arm:
|
build-arm:
|
||||||
@ -93,5 +93,5 @@ jobs:
|
|||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: OpenStarbound-Dev-macOS-Silicon
|
name: OpenStarbound-macOS-Silicon
|
||||||
path: dist/*
|
path: dist/*
|
2
.github/workflows/build_windows.yml
vendored
2
.github/workflows/build_windows.yml
vendored
@ -85,5 +85,5 @@ jobs:
|
|||||||
- name: Upload Installer
|
- name: Upload Installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Installer
|
name: OpenStarbound-Windows-Installer
|
||||||
path: installer/*
|
path: installer/*
|
||||||
|
@ -188,7 +188,8 @@ void Object::init(World* world, EntityId entityId, EntityMode mode) {
|
|||||||
|
|
||||||
setKeepAlive(configValue("keepAlive", false).toBool());
|
setKeepAlive(configValue("keepAlive", false).toBool());
|
||||||
|
|
||||||
m_scriptComponent.setScripts(m_config->scripts);
|
auto scripts = jsonToStringList(configValue("scripts", JsonArray()).toArray());
|
||||||
|
m_scriptComponent.setScripts(scripts.transformed(bind(AssetPath::relativeTo, m_config->path, _1)));
|
||||||
m_scriptComponent.setUpdateDelta(configValue("scriptDelta", 5).toInt());
|
m_scriptComponent.setUpdateDelta(configValue("scriptDelta", 5).toInt());
|
||||||
|
|
||||||
m_scriptComponent.addCallbacks("object", makeObjectCallbacks());
|
m_scriptComponent.addCallbacks("object", makeObjectCallbacks());
|
||||||
|
Loading…
Reference in New Issue
Block a user