Added Feel plugin

This commit is contained in:
journaliciouz
2025-12-11 14:49:16 +01:00
parent 97dce4aaf6
commit 1942a531d4
2820 changed files with 257786 additions and 9 deletions

View File

@@ -0,0 +1,33 @@
using UnityEngine;
namespace MoreMountains.Tools
{
/// <summary>
/// A scriptable object containing a MMLootTable definition for game objects
/// </summary>
[CreateAssetMenu(fileName="LootDefinition",menuName="MoreMountains/Loot Definition")]
public class MMLootTableGameObjectSO : ScriptableObject
{
/// the loot table
public MMLootTableGameObject LootTable;
/// returns an object from the loot table
public virtual GameObject GetLoot()
{
return LootTable.GetLoot()?.Loot;
}
/// <summary>
/// computes the loot table's weights
/// </summary>
public virtual void ComputeWeights()
{
LootTable.ComputeWeights();
}
protected virtual void OnValidate()
{
ComputeWeights();
}
}
}