Class ExpSource
- Namespace
- ElectricDrill.SoapRpgFramework.Experience
- Assembly
- com.electricdrill.soap-rpg-framework.Runtime.dll
A MonoBehaviour component that provides a source of experience points. Implements IExpSource and can only be harvested once. Once harvested, subsequent calls to Exp will return 0.
public class ExpSource : MonoBehaviour, IExpSource
- Inheritance
-
objectExpSource
- Implements
Properties
Exp
Gets the experience points from this source. The first call will return the configured experience and mark the source as harvested. Subsequent calls will return 0.
public long Exp { get; }
Property Value
- long
Harvested
Gets or sets whether this experience source has been harvested. Once set to true, the Exp property will return 0.
public bool Harvested { get; set; }
Property Value
- bool