Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit a3c0a39

Browse files
Renamed runtimeset to collection
1 parent 08f7403 commit a3c0a39

23 files changed

+47
-47
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Introduction
2+
Collections quite simply contain objects, just like we expect from a C# collection, but serialized in an asset inside your project
3+
4+
Note that Unity **realy** doesn't like it if you reference scene objects in assets, and as such have made certain editor functions incompatible with them. Therefore if any object in the collection is not persistent, they're disabled as you can see below, although you can still reorder, delete and click on them to see them in your scene view. Note that none of these conditions affect how they work under the hood, these precautions are merely related to the editor
5+
6+
## Script Reference
7+
There are various ways to interact with the collection. Available are the following members
8+
9+
T this[int index]
10+
11+
IList List { get; }
12+
int Count { get; }
13+
Type Type { get; }
14+
15+
void Add(T)
16+
void Remove(T)

Assets/SO Architecture/Documentation/Runtime-Set.txt.meta renamed to Assets/SO Architecture/Documentation/Collection.md.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/SO Architecture/Documentation/Runtime-Set.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

Assets/SO Architecture/Editor/Code Generation/SO_CodeGenerationWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class SO_CodeGenerationWindow : EditorWindow
88
* [1] Game Event Listener
99
* [2] Game Event
1010
* [3] Reference
11-
* [4] Runtime Set
11+
* [4] Collection
1212
* [5] Unity Event
1313
* [6] Variable
1414
*
@@ -37,7 +37,7 @@ public class SO_CodeGenerationWindow : EditorWindow
3737
"Event Listener",
3838
"Game Event",
3939
"Reference",
40-
"Runtime Set",
40+
"Collection",
4141
"Unity Event",
4242
"Variable"
4343
};

Assets/SO Architecture/Editor/Code Generation/SO_CodeGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private static void CreateTargetDirectories()
1818
Application.dataPath + "/SO Architecture/Events/Listeners",
1919
Application.dataPath + "/SO Architecture/Events/Game Events",
2020
Application.dataPath + "/SO Architecture/References",
21-
Application.dataPath + "/SO Architecture/Runtime Sets",
21+
Application.dataPath + "/SO Architecture/Collections",
2222
Application.dataPath + "/SO Architecture/Events/Responses",
2323
Application.dataPath + "/SO Architecture/Variables",
2424
};
@@ -72,7 +72,7 @@ public struct Data
7272
"GameEventListenerTemplate",
7373
"GameEventTemplate",
7474
"ReferenceTemplate",
75-
"RuntimeSetTemplate",
75+
"CollectionTemplate",
7676
"UnityEventTemplate",
7777
"VariableTemplate"
7878
};
@@ -82,7 +82,7 @@ public struct Data
8282
"{0}GameEventListener.cs",
8383
"{0}GameEvent.cs",
8484
"{0}Reference.cs",
85-
"{0}Set.cs",
85+
"{0}Collection.cs",
8686
"{0}UnityEvent.cs",
8787
"{0}Variable.cs"
8888
};

0 commit comments

Comments
 (0)