cz.xprees.core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Runtime/DescriptionBaseSO.cs +18 -0
- package/Runtime/DescriptionBaseSO.cs.meta +3 -0
- package/Runtime/IResettable.cs +8 -0
- package/Runtime/IResettable.cs.meta +3 -0
- package/Runtime/cz.xprees.core.asmdef +14 -0
- package/Runtime/cz.xprees.core.asmdef.meta +3 -0
- package/Runtime.meta +3 -0
- package/package.json +19 -0
- package/package.json.meta +3 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
|
|
3
|
+
namespace Xprees.Core
|
|
4
|
+
{
|
|
5
|
+
/// Base class for ScriptableObjects with a public description field visible only in Editor.
|
|
6
|
+
public class DescriptionBaseSO : ScriptableObject, IResettable
|
|
7
|
+
{
|
|
8
|
+
#if UNITY_EDITOR
|
|
9
|
+
[Tooltip("Description of the ScriptableObject. Editor only.")]
|
|
10
|
+
[TextArea]
|
|
11
|
+
public string description;
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
public virtual void ResetState()
|
|
15
|
+
{
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cz.xprees.core",
|
|
3
|
+
"rootNamespace": "Xprees.Core",
|
|
4
|
+
"references": [],
|
|
5
|
+
"includePlatforms": [],
|
|
6
|
+
"excludePlatforms": [],
|
|
7
|
+
"allowUnsafeCode": false,
|
|
8
|
+
"overrideReferences": false,
|
|
9
|
+
"precompiledReferences": [],
|
|
10
|
+
"autoReferenced": true,
|
|
11
|
+
"defineConstraints": [],
|
|
12
|
+
"versionDefines": [],
|
|
13
|
+
"noEngineReferences": false
|
|
14
|
+
}
|
package/Runtime.meta
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cz.xprees.core",
|
|
3
|
+
"displayName": "Core Classes",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"unity": "2021.3",
|
|
6
|
+
"description": "This package contains core classes and interfaces for Unity projects. It is intended to be used as a dependency for other packages. By providing base classes in a separate package, you can easily update them across all your projects.",
|
|
7
|
+
"licensesUrl": "http://www.wtfpl.net/txt/copying/",
|
|
8
|
+
"category": "Core",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"base",
|
|
11
|
+
"ScriptableObjects"
|
|
12
|
+
],
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "xprees",
|
|
15
|
+
"email": "xprees.developer@gmail.com",
|
|
16
|
+
"url": "https://github.com/xprees"
|
|
17
|
+
},
|
|
18
|
+
"hideInEditor": true
|
|
19
|
+
}
|