From a9779a1d23d775808b89a233c4503bdb4ad92248 Mon Sep 17 00:00:00 2001 From: mpewsey Date: Fri, 9 Aug 2024 21:36:55 +0000 Subject: [PATCH] deploy: de424a4f09da7a353913a7984b4fac827f158b7c --- index.html | 27 ++++++++++++++++++--- navtreedata.js | 3 +++ navtreeindex0.js | 62 ++++++++++++++++++++++++----------------------- search/all_5.js | 2 +- search/pages_0.js | 2 +- 5 files changed, 60 insertions(+), 36 deletions(-) diff --git a/index.html b/index.html index 7ab618c..6568b0a 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ -SturdyPath: SturdyPath +SturdyPath: Sturdy Path @@ -95,11 +95,30 @@
-
SturdyPath
+
Sturdy Path
-

-
+

Sturdy Path is a Godot .NET addon that provides a way to reference a scene or resource by path, in a manner that won't break when moving files around within the project. This is accomplished by keeping track of the target file's uid:// path, which is invariant of the file's location within the project.

+

image

+

+Example Usage

+
{BattleEffect.cs}
+
using MPewsey.SturdyPath;
+
+
public partial class BattleEffect : Resource
+
{
+
// Create an exported SturdyPathRef property for the scene or resource you wish to reference by path.
+
[Export] public SturdyPathRef VfxScenePath { get; set; }
+
+
// Use the SturdyPathRef.Load method to load the resource for use per typical Godot usage patterns.
+
public void SpawnVfx(Node parent)
+
{
+
var scene = VfxScenePath.Load<PackedScene>();
+
var vfx = scene.Instantiate();
+
parent.AddChild(vfx);
+
}
+
}
+
diff --git a/navtreedata.js b/navtreedata.js index 25823c4..8bef4a1 100644 --- a/navtreedata.js +++ b/navtreedata.js @@ -25,6 +25,9 @@ var NAVTREE = [ [ "SturdyPath", "index.html", [ + [ "Sturdy Path", "index.html", [ + [ "Example Usage", "index.html#autotoc_md1", null ] + ] ], [ "Packages", "namespaces.html", [ [ "Packages", "namespaces.html", "namespaces_dup" ] ] ], diff --git a/navtreeindex0.js b/navtreeindex0.js index 3f34831..19b701a 100644 --- a/navtreeindex0.js +++ b/navtreeindex0.js @@ -1,49 +1,51 @@ var NAVTREEINDEX0 = { -"_sturdy_path_ref_8cs_source.html":[2,0,0,0,0,0,0], -"annotated.html":[1,0], +"_sturdy_path_ref_8cs_source.html":[3,0,0,0,0,0,0], +"annotated.html":[2,0], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html":[2,0,0,0,0], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html":[1,0,0,0,0], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html":[0,0,0,0,0], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a082cd62c43e6b9e294d8fb851765693e":[2,0,0,0,0,3], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a082cd62c43e6b9e294d8fb851765693e":[1,0,0,0,0,3], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a082cd62c43e6b9e294d8fb851765693e":[0,0,0,0,0,3], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a0a09e5aa1e62461ddf543866aea3e921":[0,0,0,0,0,6], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a0a09e5aa1e62461ddf543866aea3e921":[2,0,0,0,0,6], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a0a09e5aa1e62461ddf543866aea3e921":[1,0,0,0,0,6], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a17daee0ad0af91cf977545764c54ce8a":[2,0,0,0,0,4], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a17daee0ad0af91cf977545764c54ce8a":[1,0,0,0,0,4], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a17daee0ad0af91cf977545764c54ce8a":[0,0,0,0,0,4], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a3d665ebae284fbfdd65cc6a31c93c5af":[0,0,0,0,0,1], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a3d665ebae284fbfdd65cc6a31c93c5af":[2,0,0,0,0,1], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a3d665ebae284fbfdd65cc6a31c93c5af":[1,0,0,0,0,1], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a45a1edf30521e856c66a5fcdd0736fcf":[1,0,0,0,0,12], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a45a1edf30521e856c66a5fcdd0736fcf":[0,0,0,0,0,12], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a52827c00253a20b4d23077f5d402170e":[0,0,0,0,0,0], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a45a1edf30521e856c66a5fcdd0736fcf":[2,0,0,0,0,12], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a52827c00253a20b4d23077f5d402170e":[1,0,0,0,0,0], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a52827c00253a20b4d23077f5d402170e":[2,0,0,0,0,0], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5b27376800f54c862ac710cc65936a24":[1,0,0,0,0,2], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5b27376800f54c862ac710cc65936a24":[0,0,0,0,0,2], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5dd75a0f9e722c757a41935133e8d107":[0,0,0,0,0,7], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5b27376800f54c862ac710cc65936a24":[2,0,0,0,0,2], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5dd75a0f9e722c757a41935133e8d107":[2,0,0,0,0,7], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5dd75a0f9e722c757a41935133e8d107":[1,0,0,0,0,7], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a9601718a5dd84e154e7f489f8ac2b4f1":[0,0,0,0,0,9], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a9601718a5dd84e154e7f489f8ac2b4f1":[1,0,0,0,0,9], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#aa9dafb6e480f1d61eb50585a094baacb":[0,0,0,0,0,11], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a9601718a5dd84e154e7f489f8ac2b4f1":[2,0,0,0,0,9], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#aa9dafb6e480f1d61eb50585a094baacb":[1,0,0,0,0,11], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#abe0f624dd84799e13f0161d1ccf457c3":[0,0,0,0,0,8], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#aa9dafb6e480f1d61eb50585a094baacb":[2,0,0,0,0,11], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#abe0f624dd84799e13f0161d1ccf457c3":[2,0,0,0,0,8], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#abe0f624dd84799e13f0161d1ccf457c3":[1,0,0,0,0,8], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ace1ebe7a20119d26725ebe592a23e5bd":[0,0,0,0,0,10], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ace1ebe7a20119d26725ebe592a23e5bd":[2,0,0,0,0,10], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ace1ebe7a20119d26725ebe592a23e5bd":[1,0,0,0,0,10], +"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ad5ee1c8c52082051ae333ca863af4dbc":[2,0,0,0,0,5], "class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ad5ee1c8c52082051ae333ca863af4dbc":[1,0,0,0,0,5], -"class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#ad5ee1c8c52082051ae333ca863af4dbc":[0,0,0,0,0,5], -"classes.html":[1,1], -"dir_1233bc0a3e869c10318208e4553a4fcb.html":[2,0,0], -"dir_a5547802c643510176416013a9f6e00c.html":[2,0,0,0,0], -"dir_b1ed97a5631d708b54c64f68a7ab468d.html":[2,0,0,0], -"dir_d9578470ebd20619821dd6e979e6987a.html":[2,0,0,0,0,0], -"files.html":[2,0], -"functions.html":[1,3,0], -"functions_func.html":[1,3,1], -"functions_prop.html":[1,3,3], -"functions_vars.html":[1,3,2], -"hierarchy.html":[1,2], +"classes.html":[2,1], +"dir_1233bc0a3e869c10318208e4553a4fcb.html":[3,0,0], +"dir_a5547802c643510176416013a9f6e00c.html":[3,0,0,0,0], +"dir_b1ed97a5631d708b54c64f68a7ab468d.html":[3,0,0,0], +"dir_d9578470ebd20619821dd6e979e6987a.html":[3,0,0,0,0,0], +"files.html":[3,0], +"functions.html":[2,3,0], +"functions_func.html":[2,3,1], +"functions_prop.html":[2,3,3], +"functions_vars.html":[2,3,2], +"hierarchy.html":[2,2], +"index.html":[0], "index.html":[], -"namespace_m_pewsey.html":[0,0,0], -"namespace_m_pewsey_1_1_sturdy_path.html":[0,0,0,0], -"namespaces.html":[0,0], +"index.html#autotoc_md1":[0,0], +"namespace_m_pewsey.html":[1,0,0], +"namespace_m_pewsey_1_1_sturdy_path.html":[1,0,0,0], +"namespaces.html":[1,0], "pages.html":[] }; diff --git a/search/all_5.js b/search/all_5.js index 7e7a708..3c1e4c6 100644 --- a/search/all_5.js +++ b/search/all_5.js @@ -1,6 +1,6 @@ var searchData= [ ['setrespath_0',['SetResPath',['../class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a5dd75a0f9e722c757a41935133e8d107',1,'MPewsey::SturdyPath::SturdyPathRef']]], - ['sturdypath_1',['SturdyPath',['../index.html',1,'']]], + ['sturdy_20path_1',['Sturdy Path',['../index.html',1,'']]], ['sturdypathref_2',['SturdyPathRef',['../class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html',1,'SturdyPathRef'],['../class_m_pewsey_1_1_sturdy_path_1_1_sturdy_path_ref.html#a52827c00253a20b4d23077f5d402170e',1,'MPewsey.SturdyPath.SturdyPathRef.SturdyPathRef()']]] ]; diff --git a/search/pages_0.js b/search/pages_0.js index 8584216..c49ad78 100644 --- a/search/pages_0.js +++ b/search/pages_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['sturdypath_0',['SturdyPath',['../index.html',1,'']]] + ['sturdy_20path_0',['Sturdy Path',['../index.html',1,'']]] ];