整合SLSUtilities
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
public interface ISowable
|
||||
{
|
||||
Harvestable HarvestableParent { get; set; }
|
||||
SowableCategory SowableCategory { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02c210e1fd74e4746a1533c51facf1f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/ISowable.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
[System.Serializable]
|
||||
public class Sowable : Edible, ISowable
|
||||
{
|
||||
[Header(nameof(ISowable))]
|
||||
[SerializeField]
|
||||
private Harvestable m_HarvestableParent;
|
||||
public Harvestable HarvestableParent { get => m_HarvestableParent; set => m_HarvestableParent = value; }
|
||||
|
||||
[SerializeField]
|
||||
private SowableCategory m_SowableCategory;
|
||||
public SowableCategory SowableCategory { get => m_SowableCategory; set => m_SowableCategory = value; }
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Sowable<T> : Sowable, IBaseEntity<T> where T : System.Enum
|
||||
{
|
||||
[Header(nameof(IBaseEntity) + "<T>")]
|
||||
[SerializeField]
|
||||
private T m_Variant;
|
||||
public T Variant { get => m_Variant; set => m_Variant = value; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d05399b4c8c155f44894bb0694d988e5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/Sowable.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
[System.Serializable]
|
||||
public class SowableBerry : Sowable<SowableBerryType>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb4b08014e8832d43bddaccce9783ba7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/SowableBerry.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
[System.Serializable]
|
||||
public class SowableNut : Sowable<SowableNutType>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5eded3ba116f034daa6086d308ebe6b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/SowableNut.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
[System.Serializable]
|
||||
public class SowableSeed : Sowable<SowableSeedType>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a5de0bec21f5af4a8339a7a4dd21478
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/SowableSeed.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.DeepInheritance
|
||||
{
|
||||
[System.Serializable]
|
||||
public class SowableTreeFruit : Sowable<SowableTreeFruitType>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 575c4cb4a380d9a43bcb9efd032d99bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/DeepInheritance/Scripts/Edibles/Sowable/SowableTreeFruit.cs
|
||||
uploadId: 823456
|
||||
Reference in New Issue
Block a user