载入中...
搜索中...
未找到
SquirrelBinding.cpp 文件参考
#include "common/SquirrelBinding.h"
#include "common/Assert.h"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <limits>
#include <string_view>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::script
 

函数

Result< Value > eve::script::valueFromSquirrel (HSQUIRRELVM vm, SQInteger index, const SquirrelValueOptions &options={})
 Convert one Squirrel value into the canonical owning Value tree.
 
Result< Value > eve::script::valueFromSquirrel (const ssq::Object &object, const SquirrelValueOptions &options={})
 Convert a rooted Squirrel object into the canonical owning Value tree.
 
Result< void > eve::script::pushValue (HSQUIRRELVM vm, const Value &value, const SquirrelValueOptions &options={})
 Push a canonical Value into the active Squirrel VM.
 
ssq::Table eve::script::projectDiagnostic (HSQUIRRELVM vm, const Diagnostic &diagnostic)
 Project one Diagnostic using the common script table schema.
 
ssq::Table eve::script::projectStatus (HSQUIRRELVM vm, const Status &status)
 Project one Status using the common script table schema.
 
ssq::Table eve::script::projectStatusResult (HSQUIRRELVM vm, const Status &status)
 Project a checked native status that carries no payload.
 
ssq::Table eve::script::projectStatusResult (HSQUIRRELVM vm, const Status &status, const Value &value)
 Project a checked native status together with its canonical payload.
 
ssq::Table eve::script::projectStatusResult (HSQUIRRELVM vm, const Status &status, ssq::Object value)
 Project a checked native status together with an already-bound script object.
 
void eve::script::markResultHasValue (ssq::Table &result)
 Declare that a projected table received a payload the caller attached itself.
 
ssq::Table eve::script::projectResult (HSQUIRRELVM vm, Result< void > &&result)
 Consume and project a void native Result using the common schema.
 
bool eve::script::ignoreResult (const ssq::Object &result, const std::string &reason)
 Mark a projected Result table as intentionally ignored by script.
 
void eve::script::exposeResultBindings (ssq::Table &eveTable)
 Expose the common script helpers under eve.result.
 

变量说明

◆ activeContainers

std::vector<const void*> activeContainers

在文件 SquirrelBinding.cpp 第 19 行定义.

◆ elements

◆ options

const SquirrelValueOptions& options

在文件 SquirrelBinding.cpp 第 17 行定义.

被这些函数引用 eve::ui::UI::addCombo(), eve::script::ScriptCompiler::analyze(), eve::ReflectedMember::attrOptions(), eve::procgen::road::bakeRoadNetwork(), eve::procgen::road::detail::bakeTrafficControlPoints(), eve::animation_editing::AnimationSkeletonOverlayAdapter::build(), eve::animation_editing::ProceduralBoneOverlayBuilder::build(), eve::animation_editing::SkeletonOverlayBuilder::build(), eve::ui::buildPropertyField(), eve::ui::buildPropertyView(), eve::model3d::buildRenderable(), eve::model3d::buildRenderables(), eve::decision::DecisionContext::choose(), eve::ui::combo(), eve::procgen::road::conformHeightmapToRoad(), eve::procgen::road::conformHeightmapToRoadWithReceipt(), eve::tensor::onnx_detail::evaluate(), eve::editor::exposeActionTimelineScriptBindings(), eve::asset_import::detail::finalizeImportReport(), eve::dev::LanguageServer::formatDocument(), eve::dev::lsp::formatEveScript(), eve::dev::LanguageServer::handleMessage(), eve::sceneloader::SceneLoader::inspect(), eve::sceneloader::SceneLoader::load(), eve::sceneloader::SceneLoader::load(), eve::sceneloader::SceneLoader::loadAsync(), eve::model3d::modelCacheKey(), eve::model3d::Model3D::newModelData(), eve::model3d::Model3D::newModelDataFromFile(), eve::sceneloader::SceneLoader::prewarmAsync(), eve::ui::propertyWidgetId(), eve::procgen::ArtifactPublisher::publish(), eve::procgen::Procgen::publishArtifact(), eve::script::pushValue(), eve::profiler_editing::EditorProfilerModel::query(), eve::sceneloader::SceneLoader::reload(), eve::model3d::Model3D::requestModelData(), eve::tensor::OnnxModel::run(), eve::tensor::OnnxModel::runGpu(), eve::ui::PropertyComponent::setOptions(), eve::spritestack::SpriteStack::sliceModel(), eve::spritestack::SpriteStack::slicePrimitive(), eve::procgen::GtsTerrainLodSet::snapshotJson(), eve::ik::Solver2D::solveChain(), eve::ik::Solver3D::solveChain(), eve::ik::Solver2D::stepChain(), eve::ik::Solver3D::stepChain(), eve::ui::DatabasePanel::sync(), eve::ui::syncPropertyView(), eve::script::valueFromSquirrel() , 以及 eve::script::valueFromSquirrel().