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.
@@ -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,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 15ed92658c334a54ad5e85c68ea8e6c0
3
+ timeCreated: 1669143010
@@ -0,0 +1,8 @@
1
+ namespace Xprees.Core
2
+ {
3
+ public interface IResettable
4
+ {
5
+ /// Reset the internal state of the object.
6
+ public void ResetState();
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: c8f0ed04496d426cbd10731fb3a7dfee
3
+ timeCreated: 1681059559
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 999c2ca78ab34358a1222750376a501c
3
+ timeCreated: 1679504908
package/Runtime.meta ADDED
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 3bd4493521d342c1a2c9ca8bb6485eb5
3
+ timeCreated: 1684674757
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
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 4c7659a42f434a118d3717ff3ca8be3a
3
+ timeCreated: 1684674154