Skip to content

Commit c70fe6f

Browse files
committed
- Improved code.
- Removed editor test assembly.
1 parent 052e191 commit c70fe6f

File tree

5 files changed

+11
-33
lines changed

5 files changed

+11
-33
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2828

2929
## [v2.0.1] - 2021-08-15
3030

31+
### Fixed
32+
3133
- **PATCH** - Updated the registry in the Github action file to correctly publish.
34+
35+
## [v2.0.2] - 2021-08-15
36+
37+
### Removed
38+
39+
- **PATCH** - Removed editor test assembly.

Editor/EditorCreator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public static class EditorCreator
1313
private const string GENERIC_NAME = "GENERIC_NAME";
1414
private const string NAMESPACE_NAME = "NAMESPACE";
1515
private const string PACKAGE_PATH = "Packages/musketta.poolmanagement";
16+
private const string SCRIPT_FILE_SUFFIX = "Editor";
1617

1718
[MenuItem("Assets/PoolManagement/Create Editor Script")]
1819
public static void CreateObjectPoolBehaviourEditor()
@@ -73,7 +74,7 @@ private static void CreateEditorFile(MonoScript scriptAsset, Type systemType, st
7374
{
7475
string scriptAssetPath = AssetDatabase.GetAssetPath(scriptAsset);
7576
scriptAssetPath = scriptAssetPath.Remove(scriptAssetPath.LastIndexOf('/'));
76-
string editorScriptPath = $"{scriptAssetPath}/{systemType.Name}Editor.cs";
77+
string editorScriptPath = $"{scriptAssetPath}/{systemType.Name}{SCRIPT_FILE_SUFFIX}.cs";
7778
File.WriteAllText(Path.GetFullPath(editorScriptPath), scriptContents);
7879
AssetDatabase.Refresh();
7980
}

Tests/Editor/PoolManagement.Editor.Tests.asmdef

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

Tests/Editor/PoolManagement.Editor.Tests.asmdef.meta

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "musketta.poolmanagement",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Used for optimizing performance by initially creating all components instead of when they are needed.",
55
"displayName": "Pool Management",
66
"author": {

0 commit comments

Comments
 (0)