载入中...
搜索中...
未找到
Scene.cpp
浏览该文件的文档.
248 return getNodeRefByPathAt(currentHostName(), path)
}
eve.Scene["attachEntity"] <- function(nodeId, cls) {
249 return attachEntityAt(currentHostName(), nodeId, cls)
}
eve.Scene["attachEntityAt"] <- function(hostName, nodeId, cls) {
271 return detachEntityAt(currentHostName(), nodeId, inst)
}
eve.Scene["detachEntityAt"] <- function(hostName, nodeId, inst) {
280 return unrootEntityAt(hostName, nodeId, idx)
}
eve.Scene["scheduleDetachEntity"] <- function(nodeId, inst) {
282 return scheduleDetachEntityAt(currentHostName(), nodeId, inst)
}
eve.Scene["collectIdsWith"] <- function(cls, hostName = null) {
292 return getEntityAt(currentHostName(), nodeId, cls)
}
eve.Scene["getEntityAt"] <- function(hostName, nodeId, cls) {
309 return entitiesOfAt(currentHostName(), nodeId)
}
eve.Scene["entitiesOfAt"] <- function(hostName, nodeId) {
322 return linkPhysics2DAt(currentHostName(), nodeId, body, mode)
}
eve.Scene["linkPhysics3D"] <- function(nodeId, body, mode = "node") {
323 return linkPhysics3DAt(currentHostName(), nodeId, body, mode)
}
eve.Scene["linkCamera3D"] <- function(nodeId, cam) {
324 return linkCamera3DAt(currentHostName(), nodeId, cam)
}
eve.Scene["linkAudio3D"] <- function(nodeId, source) {
325 return linkAudio3DAt(currentHostName(), nodeId, source)
}
eve.Scene["unlinkNodeKind"] <- function(nodeId, kind) {
326 return unlinkNodeKindAt(currentHostName(), nodeId, kind)
}
eve.Scene["linkCount"] <- function(nodeId) {
388 return getNodePositionAt(currentHostName(), nodeId)
}
eve.Scene["getNodeRotation"] <- function(nodeId) {
390 return getNodeRotationAt(currentHostName(), nodeId)
}
eve.Scene["getNodeScale"] <- function(nodeId) {
392 return getNodeScaleAt(currentHostName(), nodeId)
}
eve.Scene["getNodeVisible"] <- function(nodeId) {
394 return getNodeVisibleAt(currentHostName(), nodeId)
}
eve.Scene["getNodeWorldPosition"] <- function(nodeId) {
396 return getNodeWorldPositionAt(currentHostName(), nodeId)
}
eve.Scene["getNodeWorldRotation"] <- function(nodeId) {
398 return getNodeWorldRotationAt(currentHostName(), nodeId)
}
eve.Scene["getNodeWorldScale"] <- function(nodeId) {
400 return getNodeWorldScaleAt(currentHostName(), nodeId)
}
eve.Scene["localToWorld"] <- function(nodeId, x, y, z) {
402 return localToWorldAt(currentHostName(), nodeId, x, y, z)
}
eve.Scene["worldToLocal"] <- function(nodeId, x, y, z) {
404 return worldToLocalAt(currentHostName(), nodeId, x, y, z)
}
eve.Scene["setNodeParent"] <- function(nodeId, parentId) { return setNodeParentAt(currentHostName(), nodeId, parentId) }
406eve.Scene["addNodeChild"] <- function(parentId, childId) { return addChildAt(currentHostName(), parentId, childId) }
407eve.Scene["removeNodeChild"] <- function(parentId, childId) { return removeChildAt(currentHostName(), parentId, childId) }
408eve.Scene["setNodeQuaternion"] <- function(nodeId, qx, qy, qz, qw) { return setNodeQuaternionAt(currentHostName(), nodeId, qx, qy, qz, qw) }
411 return getNodeQuaternionAt(currentHostName(), nodeId)
}
eve.Scene["setNodeLookAt"] <- function(nodeId, tx, ty, tz) { return setNodeLookAtAt(currentHostName(), nodeId, tx, ty, tz) }
412eve.Scene["addNodeTag"] <- function(nodeId, tag) { return addNodeTagAt(currentHostName(), nodeId, tag) }
413eve.Scene["removeNodeTag"] <- function(nodeId, tag) { return removeNodeTagAt(currentHostName(), nodeId, tag) }
414eve.Scene["hasNodeTag"] <- function(nodeId, tag) { return hasNodeTagAt(currentHostName(), nodeId, tag) }
417 return getNodeTagsAt(currentHostName(), nodeId)
}
eve.Scene["collectIdsByTag"] <- function(tag) { return collectIdsByTagAt(currentHostName(), tag) }
418eve.Scene["setNodeLayer"] <- function(nodeId, layer) { return setNodeLayerAt(currentHostName(), nodeId, layer) }
421 return getNodeLayerAt(currentHostName(), nodeId)
}
eve.Scene["setNodeEventHandler"] <- function(cb) {
438eve.SceneNodeRef["setParent"] <- function(parentId) { return getScene().setNodeParentAt(getHostName(), getNodeId(), parentId) }
439eve.SceneNodeRef["removeNode"] <- function() { return getScene().removeNodeAt(getHostName(), getNodeId()) }
440eve.SceneNodeRef["setQuaternion"] <- function(qx, qy, qz, qw) { return getScene().setNodeQuaternionAt(getHostName(), getNodeId(), qx, qy, qz, qw) }
445eve.SceneNodeRef["lookAt"] <- function(tx, ty, tz) { return getScene().setNodeLookAtAt(getHostName(), getNodeId(), tx, ty, tz) }
446eve.SceneNodeRef["addTag"] <- function(tag) { return getScene().addNodeTagAt(getHostName(), getNodeId(), tag) }
447eve.SceneNodeRef["removeTag"] <- function(tag) { return getScene().removeNodeTagAt(getHostName(), getNodeId(), tag) }
448eve.SceneNodeRef["hasTag"] <- function(tag) { return getScene().hasNodeTagAt(getHostName(), getNodeId(), tag) }
453eve.SceneNodeRef["setLayer"] <- function(layer) { return getScene().setNodeLayerAt(getHostName(), getNodeId(), layer) }
462 return setNodeBoundsAt(currentHostName(), nodeId, minX, minY, minZ, maxX, maxY, maxZ)
}
eve.Scene["hasNodeBounds"] <- function(nodeId) {
463 return hasNodeBoundsAt(currentHostName(), nodeId)
}
eve.Scene["getNodeBounds"] <- function(nodeId) {
467 return deserializeHostAt(currentHostName(), json)
}
eve.Scene["pickRay"] <- function(ox, oy, oz, dx, dy, dz) {
468 return pickRayAt(currentHostName(), ox, oy, oz, dx, dy, dz)
}
eve.Scene["pickScreen"] <- function(cam, screenX, screenY, viewW, viewH) {
469 return pickScreenAt(currentHostName(), cam, screenX, screenY, viewW, viewH)
}
eve.Scene["collectFrustumIds"] <- function(cam, viewW, viewH) {
470 return collectFrustumIdsAt(currentHostName(), cam, viewW, viewH)
}
eve.Scene["applyPcgTerrainCulling"] <- function(cam, viewW, viewH, tag) {
471 return applyPcgTerrainCullingAt(currentHostName(), cam, viewW, viewH, tag)
}
eve.Scene["syncSpatialIndex"] <- function(octree) {
472 return syncSpatialIndexAt(currentHostName(), octree)
}
eve.Scene["nodeIdFromSpatialId"] <- function(index) {
477 return getScene().setNodeBoundsAt(getHostName(), getNodeId(), minX, minY, minZ, maxX, maxY, maxZ)
489 (void)script::compileAndRunChunk(eveTable.getHandle(), "SceneEntity.nut", kSceneEntityBaseScript);
532 eve::DiagnosticCode::PreconditionViolation, std::string("scene mount rejected: ") + error.what(), "scene"));
538eve::Result<SceneHost *> Scene::mount(NodeDesc root) { return mountAs("default", std::move(root)); }
595 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "scene host name must not be empty", "scene"));
596 if (SceneHost *host = findHostByName(name)) return eve::Result<SceneHost *>::success(host, eve::Status::success());
598 eve::Diagnostic::error(eve::DiagnosticCode::NotFound, "scene host was not found: " + name, "scene"));
608 eve::DiagnosticCode::NotFound, "scene host owner id was not found: " + std::to_string(ownerId), "scene"));
618}
663}
777 }
803 }
839}
905std::vector<ssq::Object> Scene::scriptEntitiesAt(const std::string& hostName, const std::string& nodeId) const {
928std::vector<ScriptComponentInstanceState> Scene::scriptComponentStatesAt(const std::string& hostName,
1058}
1313 cls.addFunc("applyPcgTerrainCullingAt", [vm=cls.getHandle()](Scene* self,const std::string& host,
The single Squirrel projection for common Result, Status and Value.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
static std::optional< Id128 > parse(std::string_view text) noexcept
Parses canonical UUID text.
Definition Identity.h:150
ECS mount point for one scene graph (full scene or nested subtree root). Isomorphic to eve::ui::UIHos...
Definition SceneHost.h:89
static eve::Result< SceneHost * > createHost(const std::string &name="")
Creates an ECS-owned scene host with an explicit Result contract.
Definition SceneHost.cpp:129
std::vector< float > getForward() const
Normalized local axes in world space (forward = +Z).
Definition SceneCameraQueries.cpp:446
Scene * getScene() const
Returns the eve.Scene module instance for entity-binding forwarding.
Definition SceneCameraQueries.cpp:303
std::string getChildIdAt(int ordinal) const
Returns the child id at.
Definition SceneCameraQueries.cpp:479
std::vector< float > getWorldPosition() const
Returns the world position.
Definition SceneCameraQueries.cpp:430
bool setRotation(float yaw, float pitch, float roll)
Sets the rotation.
Definition SceneCameraQueries.cpp:337
std::vector< float > getWorldMatrix() const
Column-major 4x4 world matrix, 16 floats.
Definition SceneCameraQueries.cpp:436
Per-node ECS identity (created lazily when a node needs script bindings or engine components)....
Definition SceneObject.h:25
static eve::Result< SceneObject * > createObject(const std::string &hostName, const std::string &nodeId, eve::SceneObjectId persistentId={})
Creates an ECS-owned companion object with an explicit ownership contract.
Definition SceneObject.cpp:7
void beginNode(const std::string &id, const std::string &name="")
Begins node.
Definition Scene.cpp:771
SceneNodeRef * getNodeRefByPathAt(const std::string &hostName, const std::string &path) const
Returns the node ref by path at.
Definition Scene.cpp:1150
bool linkPhysics3DAt(const std::string &hostName, const std::string &nodeId, physics::Body3D *b, const std::string &mode)
Link physics 3 d at.
Definition SceneNodes.cpp:126
SceneHost * resolveHost(const std::string &hostName) const
Host-qualified resolution: empty hostName → currently selected host.
Definition Scene.cpp:869
eve::Result< SceneHost * > findHostByOwner(uint32_t ownerId) const
Finds the host bound to an owner id with an explicit status.
Definition Scene.cpp:679
std::vector< std::string > collectIdsFrom(const std::string &id)
Collect ids from.
Definition SceneNodes.cpp:582
void updateTransforms()
Propagate transforms (+ link sync) for all hosts (or current if selected).
Definition Scene.cpp:702
bool setNodeParentAt(const std::string &hostName, const std::string &childId, const std::string &parentId)
Reparent by id; empty parentId detaches. Cycle-safe.
Definition SceneNodes.cpp:257
bool linkCamera3DAt(const std::string &hostName, const std::string &nodeId, graphics::Camera3D *c)
Link camera 3 d at.
Definition SceneNodes.cpp:135
std::string serializeHostAt(const std::string &hostName) const
Serialize host at.
Definition Scene.cpp:738
std::vector< std::string > collectIdsByTagAt(const std::string &hostName, const std::string &tag) const
Collect ids by tag at.
Definition SceneNodes.cpp:371
std::vector< float > getNodeRotationAt(const std::string &hostName, const std::string &nodeId) const
Returns the node rotation at.
Definition SceneNodes.cpp:186
bool rootEntity(const std::string &hostName, const std::string &nodeId, ssq::Object instance)
Root one script instance on a node (creates SceneObject lazily).
Definition Scene.cpp:919
std::string pickScreenAt(const std::string &hostName, graphics::Camera3D *cam, float screenX, float screenY, float viewW, float viewH) const
Screen-space picking through a Camera3D (camera.screenToRay).
Definition SceneCameraQueries.cpp:34
eve::Result< void > scheduleDetachEntityAt(const std::string &hostName, const std::string &nodeId, ssq::Object instance)
Queue a script instance for detach at the end of the current/next updateScripts.
Definition Scene.cpp:1058
bool setNodeQuaternionAt(const std::string &hostName, const std::string &nodeId, float qx, float qy, float qz, float qw)
Sets the node quaternion at.
Definition SceneNodes.cpp:301
eve::Result< SceneHost * > mountAs(const std::string &name, NodeDesc root)
Creates/replaces a named host from a NodeDesc tree and selects it.
Definition Scene.cpp:597
bool getNodeVisibleAt(const std::string &hostName, const std::string &nodeId) const
Returns the node visible at.
Definition SceneNodes.cpp:202
std::vector< float > worldToLocalAt(const std::string &hostName, const std::string &nodeId, float x, float y, float z) const
World to local at.
Definition SceneNodes.cpp:247
void setBuildRotation(float yaw, float pitch=0.f, float roll=0.f)
Sets the build rotation.
Definition Scene.cpp:810
eve::Result< SceneHost * > mount(NodeDesc root)
Mounts the tree as the default host and selects it.
Definition Scene.cpp:616
void updateScripts(float dt)
updateTransformsAll() + call update(dt) on every rooted instance.
Definition Scene.cpp:1020
std::vector< float > getNodePositionAt(const std::string &hostName, const std::string &nodeId) const
Returns the node position at.
Definition SceneNodes.cpp:178
std::vector< float > getNodeWorldPositionAt(const std::string &hostName, const std::string &nodeId) const
Returns the node world position at.
Definition SceneNodes.cpp:209
int getNodeLayerAt(const std::string &hostName, const std::string &nodeId) const
Returns the node layer at.
Definition SceneNodes.cpp:391
bool linkPhysics2DAt(const std::string &hostName, const std::string &nodeId, physics::Body *b, const std::string &mode)
Link physics 2 d at.
Definition SceneNodes.cpp:117
bool removeNodeAt(const std::string &hostName, const std::string &nodeId)
Detach node from its parent (arena node stays; rebuild to delete).
Definition SceneNodes.cpp:266
void flushDelayedDetaches()
Drain the delayed-detach queue (called automatically by updateScripts).
Definition Scene.cpp:1111
SceneNodeRef * getNodeRefAt(const std::string &hostName, const std::string &nodeId) const
Returns the node ref at.
Definition Scene.cpp:1142
std::vector< std::string > collectChildIds(const std::string &parentId)
Collect child ids.
Definition SceneNodes.cpp:598
void setHostVisible(bool visible)
Shows/hides every host (or the selected one when a host is selected).
Definition Scene.cpp:694
bool unlinkNodeAt(const std::string &hostName, const std::string &nodeId)
Remove every link on the node.
Definition SceneNodes.cpp:153
bool setNodePosition(const std::string &id, float x, float y, float z)
Script-friendly TRS setters on the current host; each marks the transform dirty.
Definition SceneNodes.cpp:37
std::vector< std::string > collectIdsVisible(bool visible)
Collect ids visible.
Definition SceneNodes.cpp:593
bool linkAudio3DAt(const std::string &hostName, const std::string &nodeId, audio::Source *s)
Link audio 3 d at.
Definition SceneNodes.cpp:144
bool setNodeLookAtAt(const std::string &hostName, const std::string &nodeId, float tx, float ty, float tz)
Orient node so its local +Z axis points at (tx,ty,tz).
Definition SceneNodes.cpp:321
std::vector< float > getNodeWorldRotationAt(const std::string &hostName, const std::string &nodeId) const
Returns the node world rotation at.
Definition SceneNodes.cpp:217
void bindOwner(uint32_t ownerId)
Binds the selected host to a UI/scene owner id.
Definition Scene.cpp:689
bool removeNodeTagAt(const std::string &hostName, const std::string &nodeId, const std::string &tag)
Removes node tag at.
Definition SceneNodes.cpp:349
bool linkRenderable3DAt(const std::string &hostName, const std::string &nodeId, graphics::Renderable3D *r)
Link renderable 3 d at.
Definition SceneNodes.cpp:108
eve::Result< SceneHost * > remount(NodeDesc root)
Replaces the selected host's tree.
Definition Scene.cpp:618
void setBuildPosition(float x, float y, float z=0.f)
Sets the build position.
Definition Scene.cpp:803
bool isAncestor(const std::string &ancestorId, const std::string &nodeId)
True when ancestor.
Definition SceneNodes.cpp:567
bool setNodeScale(const std::string &id, float sx, float sy, float sz)
Sets the local scale of a node.
Definition SceneNodes.cpp:61
std::vector< std::string > collectIdsByName(const std::string &name)
Collect ids by name.
Definition SceneNodes.cpp:588
void setHostLayer(int layer)
Sets the render layer of every host (or the selected one).
Definition Scene.cpp:698
std::vector< ScriptComponentInstanceState > scriptComponentStatesAt(const std::string &hostName, const std::string &nodeId) const
一个节点上所有脚本实体的**已登记**组件状态(编辑器/工具面)。
Definition Scene.cpp:1006
bool unlinkNodeKindAt(const std::string &hostName, const std::string &nodeId, const std::string &kind)
Remove links of one kind ("renderable2d"|"renderable3d"|"physics2d"|...).
Definition SceneNodes.cpp:158
std::vector< float > getNodeScaleAt(const std::string &hostName, const std::string &nodeId) const
Returns the node scale at.
Definition SceneNodes.cpp:194
std::string nodeIdFromSpatialIdAt(const std::string &hostName, int index) const
Map a spatial-index id (arena index) back to a node id.
Definition SceneNodes.cpp:506
eve::Result< SceneHost * > remountAs(const std::string &name, NodeDesc root)
Creates/replaces a named host through the canonical mount path.
Definition Scene.cpp:659
std::vector< std::string > getNodeTagsAt(const std::string &hostName, const std::string &nodeId) const
Returns the node tags at.
Definition SceneNodes.cpp:363
void updateTransformsAll()
Propagate transforms for every host regardless of selection.
Definition Scene.cpp:707
int linkCountAt(const std::string &hostName, const std::string &nodeId)
Link count at.
Definition SceneNodes.cpp:169
bool hasNodeBoundsAt(const std::string &hostName, const std::string &nodeId) const
True when node bounds at.
Definition SceneNodes.cpp:455
bool deserializeHostAt(const std::string &hostName, const std::string &json)
Deserialize host at.
Definition Scene.cpp:743
std::vector< std::string > walkBreadthFirstIds()
Walk breadth first ids.
Definition SceneNodes.cpp:605
bool unrootEntityAt(const std::string &hostName, const std::string &nodeId, int index)
Remove a rooted script instance by its index in the binding list.
Definition Scene.cpp:939
bool linkRenderable3D(const std::string &nodeId, graphics::Renderable3D *r)
Links a 3D renderable to a node in the current host.
Definition SceneNodes.cpp:87
bool setNodeLayerAt(const std::string &hostName, const std::string &nodeId, int layer)
Sets the node layer at.
Definition SceneNodes.cpp:382
bool setNodeRotation(const std::string &id, float yaw, float pitch, float roll)
Sets the local rotation (yaw/pitch/roll in degrees) of a node.
Definition SceneNodes.cpp:49
bool unlinkNode(const std::string &nodeId)
Removes every link on a node in the current host.
Definition SceneNodes.cpp:91
bool syncSpatialIndexAt(const std::string &hostName, spatial::Octree *ot) const
Insert every bounded node's world AABB into an octree (id = arena index).
Definition SceneNodes.cpp:493
std::vector< float > getNodeQuaternionAt(const std::string &hostName, const std::string &nodeId) const
Returns the node quaternion at.
Definition SceneNodes.cpp:312
bool removeChildAt(const std::string &hostName, const std::string &parentId, const std::string &childId)
Removes child at.
Definition SceneNodes.cpp:292
eve::Result< SceneHost * > findHost(const std::string &name) const
Finds a host by name with an explicit not-found status.
Definition Scene.cpp:670
bool setNodeBoundsAt(const std::string &hostName, const std::string &nodeId, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Sets the node bounds at.
Definition SceneNodes.cpp:439
bool setNodeVisible(const std::string &id, bool visible)
Shows/hides a node.
Definition SceneNodes.cpp:73
bool addChildAt(const std::string &hostName, const std::string &parentId, const std::string &childId)
Adds child at.
Definition SceneNodes.cpp:283
std::string getChildIdAt(const std::string &parentId, int childOrdinal)
Returns the child id at.
Definition SceneNodes.cpp:541
std::vector< ssq::Object > scriptEntitiesAt(const std::string &hostName, const std::string &nodeId) const
取某个节点上挂着的脚本实体实例(eve.SceneEntity 子类实例)的**原生**快照。
Definition Scene.cpp:983
bool linkRenderable2DAt(const std::string &hostName, const std::string &nodeId, graphics::Renderable2D *r)
Link renderable 2 d at.
Definition SceneNodes.cpp:99
std::vector< float > localToWorldAt(const std::string &hostName, const std::string &nodeId, float x, float y, float z) const
Local to world at.
Definition SceneNodes.cpp:237
std::vector< float > getNodeWorldScaleAt(const std::string &hostName, const std::string &nodeId) const
Returns the node world scale at.
Definition SceneNodes.cpp:227
bool select(const std::string &name)
Selects a named host; false when it does not exist.
Definition Scene.cpp:663
bool isDescendant(const std::string &nodeId, const std::string &ancestorId)
True when descendant.
Definition SceneNodes.cpp:572
bool hasNodeTagAt(const std::string &hostName, const std::string &nodeId, const std::string &tag) const
True when node tag at.
Definition SceneNodes.cpp:356
std::vector< std::string > walkDepthFirstIds()
DFS order of ids under root (same as collectIds). Kept for script naming clarity.
Definition SceneNodes.cpp:603
std::vector< std::string > collectFrustumIdsAt(const std::string &hostName, graphics::Camera3D *cam, float viewW, float viewH) const
Ids of nodes whose world AABB intersects the camera frustum.
Definition SceneCameraQueries.cpp:45
eve::Result< SceneHost * > remountReconcile(NodeDesc root)
Reconciles the selected host, reporting whether replacement failed.
Definition Scene.cpp:638
std::vector< float > getNodeBoundsAt(const std::string &hostName, const std::string &nodeId) const
Returns the node bounds at.
Definition SceneNodes.cpp:461
std::string pickRayAt(const std::string &hostName, float ox, float oy, float oz, float dx, float dy, float dz) const
Nearest node id hit by a world ray (nodes with bounds), or "".
Definition SceneNodes.cpp:470
bool addNodeTagAt(const std::string &hostName, const std::string &nodeId, const std::string &tag)
Adds node tag at.
Definition SceneNodes.cpp:342
bool linkRenderable2D(const std::string &nodeId, graphics::Renderable2D *r)
Links a 2D renderable to a node in the current host.
Definition SceneNodes.cpp:83
int forEachEntity(const std::string &hostName, const std::string &nodeId, ssq::Object cb)
Call cb(instance, index) for every rooted instance; returns count.
Definition Scene.cpp:960
ForceVector add(ForceVector a, ForceVector b)
Definition ForceMath.h:13
void injectSceneComponentClass(ssq::Table &eveTable)
Definition SceneComponentScript.cpp:114
Definition AvatarInstance.h:34
void registerSceneSearch()
Install the process-lifetime provider using the existing capability registry.
Definition SceneSearch.cpp:510
void invalidateSceneSearch()
Invalidate the registered projection before Scene/runtime teardown; engine thread,...
Definition SceneSearch.cpp:516
void registerSceneArtifactProvider()
Register the scene provider in the common capability registry.
Definition ArtifactProvider.cpp:267
void exposeFollowPlayerBindings(ssq::Table &table)
Register FollowPlayer value types and evaluator with the root script table.
Definition FollowPlayer.cpp:48
void exposePcgBuildConfigBindings(ssq::Table &t)
Register Pcg build-config bindings.
Definition PcgBuildConfig.cpp:46
EVENGINE_API_PLATFORM void exposeScriptLinkBindings(ssq::Class &cls)
Register eve.Scene's script-link surface.
Definition ScriptLinks.cpp:234
void exposePcgGrowthBindings(ssq::Table &t)
Register Pcg Growth bindings.
Definition PcgBuildConfig.cpp:150
void exposeLocationProfileBindings(ssq::Table &table)
Register Pcg location profile value types and operations.
Definition LocationProfileBindings.cpp:21
SQRESULT callFunction(HSQUIRRELVM vm, const HSQOBJECT &fn, const Receiver &receiver, Args &&... args)
Call a script function, deriving sq_call's parameter count from the pushes.
Definition SquirrelBinding.h:212
SQRESULT compileAndRunChunk(HSQUIRRELVM vm, const char *name, const char *source)
Compile and run one embedded script chunk against the root table.
Definition SquirrelBinding.cpp:59
@ InvalidArgument
@ NotFound
@ PreconditionViolation
@ NoOp
@ Applied
EVENGINE_API_FOUNDATION Result< std::vector< ScriptComponentInstanceState > > scriptComponentInstancesOf(const ssq::Object &entityInstance)
读一个脚本实体实例上挂着的全部**已登记**组件的状态。
Definition ScriptComponentSnapshot.cpp:187
Definition Container.h:602
Scene-owned CPU registry provider for generated artifacts.
一个脚本实体实例上某个组件的**当前状态**(供引擎工具读取)。
Definition ScriptComponentSnapshot.h:38
Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree)....
Definition NodeDesc.h:19
Retained scene node (arena). Conceptual GameObject; isomorphic to eve::ui::UINode.
Definition SceneHost.h:46