Show / Hide Table of Contents

Class WeaverChest

WeaverCore's implementation of chests

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
WeaverChest
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class WeaverChest : MonoBehaviour

Fields

| Edit this page View Source

OnChestOpen

Declaration
public UnityEvent OnChestOpen
Field Value
Type Description
UnityEvent
| Edit this page View Source

chestOpenedSaveField

Declaration
[SerializeField]
[Tooltip("The name of the boolean field in the Save Specific Settings that stores whether the chest has already been opened")]
[SaveSpecificFieldName(typeof(bool), "chestSaveSettings")]
protected string chestOpenedSaveField
Field Value
Type Description
string
| Edit this page View Source

chestSaveSettings

Declaration
[Header("Persistent Data")]
[SerializeField]
[Tooltip("The save specific settings object used to persistently store if the chest was opened")]
protected SaveSpecificSettings chestSaveSettings
Field Value
Type Description
SaveSpecificSettings
| Edit this page View Source

largeGeo

Declaration
[SerializeField]
[Tooltip("The amount of large geo to spawn")]
protected int largeGeo
Field Value
Type Description
int
| Edit this page View Source

mediumGeo

Declaration
[SerializeField]
[Tooltip("The amount of medium geo to spawn")]
protected int mediumGeo
Field Value
Type Description
int
| Edit this page View Source

smallGeo

Declaration
[Header("Geo")]
[SerializeField]
[Tooltip("The amount of small geo to spawn")]
protected int smallGeo
Field Value
Type Description
int

Properties

| Edit this page View Source

IsOpened

Returns true if the chest is already opened. Returns false if the chest is closed

Declaration
public virtual bool IsOpened { get; protected set; }
Property Value
Type Description
bool
| Edit this page View Source

MainAnimator

Declaration
public WeaverAnimationPlayer MainAnimator { get; }
Property Value
Type Description
WeaverAnimationPlayer
| Edit this page View Source

MainRenderer

Declaration
public SpriteRenderer MainRenderer { get; }
Property Value
Type Description
SpriteRenderer
| Edit this page View Source

StruckByNail

Declaration
public bool StruckByNail { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Awake()

Declaration
protected virtual void Awake()
| Edit this page View Source

OnOpen()

Called when the chest is opened

Declaration
protected virtual void OnOpen()
| Edit this page View Source

OpenChest()

Opens up the chest

Declaration
public void OpenChest()

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾