Table of Contents

Class GameEventListenerGeneric4<T, U, W, K>

Namespace
ElectricDrill.SoapRpgFramework.Events
Assembly
com.electricdrill.soap-rpg-framework.Runtime.dll

MonoBehaviour component that listens to GameEventGeneric4 objects and responds with UnityEvents. Automatically registers and unregisters itself when enabled/disabled.

public class GameEventListenerGeneric4<T, U, W, K> : MonoBehaviour

Type Parameters

T

The type of the first parameter the listened event carries.

U

The type of the second parameter the listened event carries.

W

The type of the third parameter the listened event carries.

K

The type of the fourth parameter the listened event carries.

Inheritance
object
GameEventListenerGeneric4<T, U, W, K>

Fields

_event

[SerializeField]
protected GameEventGeneric4<T, U, W, K> _event

Field Value

GameEventGeneric4<T, U, W, K>

_response

[SerializeField]
protected UnityEvent<T, U, W, K> _response

Field Value

UnityEvent<T, U, W, K>

Methods

OnEventRaised(T, U, W, K)

Called by the GameEvent when it is raised. Invokes the configured UnityEvent response with the provided contexts.

public void OnEventRaised(T contextT, U contextU, W contextW, K contextK)

Parameters

contextT T

The first parameter passed from the event.

contextU U

The second parameter passed from the event.

contextW W

The third parameter passed from the event.

contextK K

The fourth parameter passed from the event.