using System.Collections;
using System.Collections.Generic;
using MoreMountains.Tools;
using UnityEngine;
namespace MoreMountains.Tools
{
///
/// A class defining the contents of a MMLootTable
///
///
public class MMLoot
{
/// the object to return
public T Loot;
/// the weight attributed to this specific object in the table
public float Weight = 1f;
/// the chance percentage to display for this object to be looted. ChancePercentages are meant to be computed by the MMLootTable class
[MMReadOnly]
public float ChancePercentage;
/// the computed low bound of this object's range
public float RangeFrom { get; set; }
/// the computed high bound of this object's range
public float RangeTo { get; set; }
}
///
/// a MMLoot implementation for gameobjects
///
[System.Serializable]
public class MMLootGameObject : MMLoot { }
///
/// a MMLoot implementation for strings
///
[System.Serializable]
public class MMLootString : MMLoot { }
///
/// a MMLoot implementation for floats
///
[System.Serializable]
public class MMLootFloat : MMLoot { }
}