CORE dashboard + a lot of changes
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
using RPGCore.BackpackEquipment.Events;
|
||||
using RPGCore.BackpackEquipment.Objects;
|
||||
using RPGCore.Core;
|
||||
using RPGCore.StatusEffect.ObjectModules.StatusObjectModule;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RPGCore.Inventory2Status.ObjectModules
|
||||
{
|
||||
[ObjectModule(
|
||||
name: "[Integration] Usable with effects",
|
||||
description: "<b>UsableObjects</b> with definable effects."
|
||||
)]
|
||||
public class UsableEffectsModule : ObjectModule<UsableObject>
|
||||
{
|
||||
[SerializeField] private BaseEffect[] effectsOnUse;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
parent.events.RegisterAfter<UseUsableEvent>(OnUseUsable);
|
||||
}
|
||||
|
||||
private void OnUseUsable(UseUsableEvent ev)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68266e6bff4e407ab40c97af05f6da37
|
||||
timeCreated: 1782059030
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
using RPGCore.BackpackEquipment.ObjectModules.UnitEquipment.Events;
|
||||
using RPGCore.BackpackEquipment.ObjectModules.UnitEquipment.Objects;
|
||||
using RPGCore.Core;
|
||||
using RPGCore.StatusEffect.ObjectModules.StatusObjectModule;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RPGCore.Inventory2Status.ObjectModules
|
||||
{
|
||||
[ObjectModule(
|
||||
name: "[Integration] Wearable with effects",
|
||||
description: "<b>WearableObjects</b> with definable effects."
|
||||
)]
|
||||
public class WearableEffectsModule : ObjectModule<WearableObject>
|
||||
{
|
||||
[SerializeField] private BaseEffect[] effectsOnEquip;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
parent.events.Register<EquipmentEquipEvent>(OnEquip);
|
||||
parent.events.Register<EquipmentUnEquipEvent>(OnUnEquip);
|
||||
}
|
||||
|
||||
private void OnEquip(EquipmentEquipEvent ev)
|
||||
{
|
||||
}
|
||||
|
||||
private void OnUnEquip(EquipmentUnEquipEvent ev)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 054fa1f205b04842a24d93c6316fe929
|
||||
timeCreated: 1782061679
|
||||
Reference in New Issue
Block a user