migration from new repo

This commit is contained in:
mrtoine 2025-09-06 23:56:47 +02:00
commit 423134a840
26930 changed files with 3458568 additions and 0 deletions

View file

@ -0,0 +1,53 @@
using System;
using Adventurer.Runtime;
using UnityEngine;
namespace EventSystem.Runtime
{
public static class AdventurerSignals
{
public static event Action<AdventurerClass> OnAdventurerSpawnRequested;
public static event Action OnRefresh;
public static event Action<AdventurerClass, Sprite> OnPortraitCaptured;
public static event Action<AdventurerClass> OnPhotoCaptured;
public static event Action<AdventurerClass> OnInfoAdventurerPanel;
public static event Action<AdventurerClass> OnAdventurerSelected;
public static event Action<AdventurerClass> OnAdventurerUnselected;
public static void RaiseSpawnRequested(AdventurerClass adventurerClass)
{
OnAdventurerSpawnRequested?.Invoke(adventurerClass);
}
public static void RaiseRefreshAdventurers()
{
OnRefresh?.Invoke();
}
public static void RaisePortraitCaptured(AdventurerClass adventurerClass, Sprite portrait)
{
OnPortraitCaptured?.Invoke(adventurerClass, portrait);
}
public static void RaisePhotoCaptured(AdventurerClass adventurerClass)
{
OnPhotoCaptured?.Invoke(adventurerClass);
}
public static void RaiseInfoAdventurerPanel(AdventurerClass adventurerClass)
{
OnInfoAdventurerPanel?.Invoke(adventurerClass);
}
public static void RaiseAdventurerSelected(AdventurerClass adventurerClass)
{
OnAdventurerSelected?.Invoke(adventurerClass);
}
public static void RaiseAdventurerUnselected(AdventurerClass adventurerClass)
{
OnAdventurerUnselected?.Invoke(adventurerClass);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f1abee8b62244c39b8ad5a2274687a39
timeCreated: 1754130783

View file

@ -0,0 +1,17 @@
{
"name": "EventSystem.Runtime",
"rootNamespace": "",
"references": [
"GUID:d01b71ecbce444a299cc1623f29e9d35",
"GUID:239153993e9574192a1980e14075369e"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f5d0434d9e8c34eb1a16f4c57b172b85
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,29 @@
using System;
using Adventurer.Runtime;
using UnityEngine;
namespace EventSystem.Runtime
{
public class LegacyRecruitementEvents : MonoBehaviour
{
public static event Action<AdventurerClass> OnHeroRecruited;
public static event Action<AdventurerClass> OnSpawnAdventurerModel;
private void OnEnable()
{
AdventurerSignals.OnAdventurerSpawnRequested += RelaySpawn;
}
private void OnDisable()
{
AdventurerSignals.OnAdventurerSpawnRequested -= RelaySpawn;
}
private void RelaySpawn(AdventurerClass adventurer)
{
OnHeroRecruited?.Invoke(adventurer);
OnSpawnAdventurerModel?.Invoke(adventurer);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0c336ee078344ae8b087c3f878a86e17
timeCreated: 1754213587

View file

@ -0,0 +1,15 @@
using UnityEngine;
namespace EventSystem.Runtime
{
public static class PanelSignals
{
public static event System.Action<string> OnRefresh;
public static void RaiseRefresh(string panelName)
{
OnRefresh?.Invoke(panelName);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a13ce8bd705048828e3e4e72ca9912e8
timeCreated: 1754381771

View file

@ -0,0 +1,21 @@
using System;
using Quests.Runtime;
namespace EventSystem.Runtime
{
public static class QuestSignals
{
public static event Action<QuestClass> OnInfoQuestPanel;
public static event Action OnRefresh;
public static void RaiseInfoQuestPanel(QuestClass questClass)
{
OnInfoQuestPanel?.Invoke(questClass);
}
public static void RaiseRefreshQuests()
{
OnRefresh?.Invoke();
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b68f58866a514267adc2229cc420e814
timeCreated: 1754316276

View file

@ -0,0 +1,9 @@
using System;
namespace EventSystem.Runtime
{
public class TimeSignals
{
public static event Action<int> OnTimeChanged;
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ed9d88020a2c4a76b587fee9b0d73714
timeCreated: 1754414418