Compare commits
2 commits
3ba8dad4a2
...
aac376670c
| Author | SHA1 | Date | |
|---|---|---|---|
| aac376670c | |||
| 9143f3c50d |
52 changed files with 2507 additions and 734 deletions
|
|
@ -35,6 +35,8 @@
|
|||
<available_title>Disponible(s)</available_title>
|
||||
<in_qg>Au QG</in_qg>
|
||||
<in_quest>En mission</in_quest>
|
||||
<!-- Recap quête -->
|
||||
<quest.completed.title>Récap' Quête</quest.completed.title>
|
||||
|
||||
<!-- QUÊTES -->
|
||||
<quests.1.title>Invasion de Rats</quests.1.title>
|
||||
|
|
@ -62,7 +64,6 @@
|
|||
|
||||
<event.plain.fight.1>Un groupe de bandit demandent un droit de passage au abord d'un pont. Vous êtes contraint de pay... de les abattre. Après un combat acharné, vos aventuriers l'emporte !</event.plain.fight.1>
|
||||
|
||||
|
||||
<!-- OBJETS -->
|
||||
<item_gold>Or</item_gold>
|
||||
<item_gold_desc>Or.</item_gold_desc>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,7 +7,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace AudioSystem.Runtime
|
||||
{
|
||||
public class AudioManager : BaseMonobehaviour
|
||||
public class AudioManager : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using UnityEngine.SceneManagement;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class SceneLoader : BaseMonobehaviour
|
||||
public class SceneLoader : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using UnityEngine.SceneManagement;
|
|||
|
||||
namespace Cheat.Runtime
|
||||
{
|
||||
public class Cheat : BaseMonobehaviour
|
||||
public class Cheat : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class BaseMonobehaviour : MonoBehaviour
|
||||
public class BaseMonoBehaviour : MonoBehaviour
|
||||
{
|
||||
#region Publics
|
||||
|
||||
|
|
|
|||
|
|
@ -29,14 +29,14 @@ namespace Core.Runtime
|
|||
return false;
|
||||
}
|
||||
|
||||
public void SetFact<T>(string key, T value, BaseMonobehaviour.FactPersistence persistence)
|
||||
public void SetFact<T>(string key, T value, BaseMonoBehaviour.FactPersistence persistence)
|
||||
{
|
||||
if (_facts.TryGetValue(key, out var existingFact))
|
||||
{
|
||||
if (existingFact is Fact<T> typedFact)
|
||||
{
|
||||
typedFact.Value = value;
|
||||
typedFact.IsPersistent = persistence == BaseMonobehaviour.FactPersistence.Persistent;
|
||||
typedFact.IsPersistent = persistence == BaseMonoBehaviour.FactPersistence.Persistent;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -45,7 +45,7 @@ namespace Core.Runtime
|
|||
}
|
||||
else
|
||||
{
|
||||
bool isPersistent = persistence == BaseMonobehaviour.FactPersistence.Persistent;
|
||||
bool isPersistent = persistence == BaseMonoBehaviour.FactPersistence.Persistent;
|
||||
_facts[key] = new Fact<T>(value, isPersistent);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine.SceneManagement;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class GameManager: BaseMonobehaviour
|
||||
public class GameManager: BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class LocalizationSystem : BaseMonobehaviour
|
||||
public class LocalizationSystem : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using Random = UnityEngine.Random;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class SceneLoader : BaseMonobehaviour
|
||||
public class SceneLoader : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using UnityEngine;
|
|||
|
||||
namespace Core.Runtime
|
||||
{
|
||||
public class UIManager : BaseMonobehaviour
|
||||
public class UIManager : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine;
|
|||
|
||||
namespace Decor.Runtime
|
||||
{
|
||||
public class AdventurerApearanceSpawner : BaseMonobehaviour
|
||||
public class AdventurerApearanceSpawner : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace Decor.Runtime
|
||||
{
|
||||
public class AdventurerModelBinder : BaseMonobehaviour
|
||||
public class AdventurerModelBinder : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using UnityEngine.AI;
|
|||
|
||||
namespace Decor.Runtime
|
||||
{
|
||||
public class PortraitGenerator : BaseMonobehaviour
|
||||
public class PortraitGenerator : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace _.Features.Decor.Runtime
|
||||
{
|
||||
public class TakePhoto : BaseMonobehaviour
|
||||
public class TakePhoto : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using UnityEngine;
|
|||
|
||||
namespace Decor.Runtime
|
||||
{
|
||||
public class QuestSign: BaseMonobehaviour
|
||||
public class QuestSign: BaseMonoBehaviour
|
||||
{
|
||||
#region private & protected
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace Goals.Runtime
|
||||
{
|
||||
public class GoalSystem : BaseMonobehaviour
|
||||
public class GoalSystem : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace MenuSystem.Runtime.LoadGame
|
||||
{
|
||||
public class LoadGame : BaseMonobehaviour
|
||||
public class LoadGame : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace MenuSystem.Runtime
|
||||
{
|
||||
public class MenuManager : BaseMonobehaviour
|
||||
public class MenuManager : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using UnityEngine;
|
|||
|
||||
namespace MenuSystem.Runtime
|
||||
{
|
||||
public class NewGame : BaseMonobehaviour
|
||||
public class NewGame : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using Cursor = UnityEngine.Cursor;
|
|||
|
||||
namespace MenuSystem.Runtime
|
||||
{
|
||||
public class PauseMenu : BaseMonobehaviour
|
||||
public class PauseMenu : BaseMonoBehaviour
|
||||
{
|
||||
#region Publics
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using UnityEngine;
|
|||
|
||||
namespace MenuSystem.Runtime.Settings
|
||||
{
|
||||
public class AudioMenuModule : BaseMonobehaviour, IMenuModule
|
||||
public class AudioMenuModule : BaseMonoBehaviour, IMenuModule
|
||||
{
|
||||
#region Publics
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace MenuSystem.Runtime
|
||||
{
|
||||
public class SettingsMenu : BaseMonobehaviour
|
||||
public class SettingsMenu : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine;
|
|||
|
||||
namespace MenuSystem.Runtime.TitleScreen
|
||||
{
|
||||
public class TitleScreen : BaseMonobehaviour
|
||||
public class TitleScreen : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine.Serialization;
|
|||
|
||||
namespace Player.Runtime
|
||||
{
|
||||
public class Deplacements : BaseMonobehaviour
|
||||
public class Deplacements : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
44
Assets/_/Features/Quests/Runtime/Events/QuestHistory.cs
Normal file
44
Assets/_/Features/Quests/Runtime/Events/QuestHistory.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using Core.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Quests.Runtime
|
||||
{
|
||||
public class QuestHistory : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
||||
//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Unity API
|
||||
|
||||
//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Main Methods
|
||||
|
||||
//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Utils
|
||||
|
||||
/* Fonctions privées utiles */
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Privates and Protected
|
||||
|
||||
[SerializeField] TextMesh _historyContent;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a360a2299eba4e078acfa47eac0464e3
|
||||
timeCreated: 1760204281
|
||||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace Quests.Runtime._.Features.Quests
|
||||
{
|
||||
public class QuestInitializer : BaseMonobehaviour
|
||||
public class QuestInitializer : BaseMonoBehaviour
|
||||
{
|
||||
void Awake()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using Random = UnityEngine.Random;
|
|||
|
||||
namespace Quests.Runtime
|
||||
{
|
||||
public class QuestManager : BaseMonobehaviour
|
||||
public class QuestManager : BaseMonoBehaviour
|
||||
{
|
||||
#region Singleton
|
||||
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ namespace GuildTycoon.Tests.Editor
|
|||
// Ensure profile and base facts are set
|
||||
_gameManager.Profile = "UnitTestProfile";
|
||||
_gameManager.Fact = new FactDictionnary();
|
||||
GameManager.m_gameFacts = _gameManager.Fact; // ensure BaseMonobehaviour access works
|
||||
GameManager.m_gameFacts = _gameManager.Fact; // ensure BaseMonoBehaviour access works
|
||||
|
||||
// Pre-seed facts used by QuestManager
|
||||
_gameManager.Fact.SetFact("accepted_quests", new List<QuestClass>(), BaseMonobehaviour.FactPersistence.Normal);
|
||||
_gameManager.Fact.SetFact("events_quests_history", new Dictionary<Guid, List<QuestEventLog>>(), BaseMonobehaviour.FactPersistence.Normal);
|
||||
_gameManager.Fact.SetFact("accepted_quests", new List<QuestClass>(), BaseMonoBehaviour.FactPersistence.Normal);
|
||||
_gameManager.Fact.SetFact("events_quests_history", new Dictionary<Guid, List<QuestEventLog>>(), BaseMonoBehaviour.FactPersistence.Normal);
|
||||
|
||||
// Create QuestManager
|
||||
_qmGO = new GameObject("QuestManager_Test");
|
||||
|
|
@ -64,7 +64,7 @@ namespace GuildTycoon.Tests.Editor
|
|||
|
||||
// Seed facts with the same quest so QuestManager can update saved state
|
||||
var accepted = new List<QuestClass> { new QuestClass(questId, quest.Name, quest.Description, quest.Objective, quest.Duration, quest.Difficulty, quest.Rewards, quest.MinLevel) { State = QuestStateEnum.InProgress } };
|
||||
_gameManager.Fact.SetFact("accepted_quests", accepted, BaseMonobehaviour.FactPersistence.Normal);
|
||||
_gameManager.Fact.SetFact("accepted_quests", accepted, BaseMonoBehaviour.FactPersistence.Normal);
|
||||
|
||||
QuestClass completedRaised = null;
|
||||
Action<QuestClass> handler = q => completedRaised = q;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine.SceneManagement;
|
|||
|
||||
namespace TestFacts.Runtime
|
||||
{
|
||||
public class AutoLoaderGame : BaseMonobehaviour
|
||||
public class AutoLoaderGame : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
namespace TestFacts.Runtime
|
||||
{
|
||||
public class TestFacts : BaseMonobehaviour
|
||||
public class TestFacts : BaseMonoBehaviour
|
||||
{
|
||||
string _fact;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine;
|
|||
|
||||
namespace TestFacts.Runtime
|
||||
{
|
||||
public class Triche : BaseMonobehaviour
|
||||
public class Triche : BaseMonoBehaviour
|
||||
{
|
||||
[ContextMenu("Add 99999 Gold")]
|
||||
void AddInfiniteGold()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class AdventurerCardSelectionnable : BaseMonobehaviour
|
||||
public class AdventurerCardSelectionnable : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class AdventurerUIController : BaseMonobehaviour
|
||||
public class AdventurerUIController : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class RecruitementPanel: BaseMonobehaviour
|
||||
public class RecruitementPanel: BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InfoAdventurerPanel : BaseMonobehaviour
|
||||
public class InfoAdventurerPanel : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InteractionAdventurerCard : BaseMonobehaviour
|
||||
public class InteractionAdventurerCard : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class BasePanel : BaseMonobehaviour
|
||||
public class BasePanel : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using TMPro;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InfoPanel : BaseMonobehaviour
|
||||
public class InfoPanel : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InventoryPanel : BaseMonobehaviour
|
||||
public class InventoryPanel : BaseMonoBehaviour
|
||||
{
|
||||
#region Unity API
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime.Events
|
||||
{
|
||||
public class EventsDisplayUI : BaseMonobehaviour
|
||||
public class EventsDisplayUI : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime.Events
|
||||
{
|
||||
public class QuestLogUI : BaseMonobehaviour
|
||||
public class QuestLogUI : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime.Events
|
||||
{
|
||||
public class QuestLogsListUI : BaseMonobehaviour
|
||||
public class QuestLogsListUI : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using UnityEngine.UI;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InfoQuestPanel : BaseMonobehaviour
|
||||
public class InfoQuestPanel : BaseMonoBehaviour
|
||||
{
|
||||
#region Publics
|
||||
[Header("UI Text Elements")]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class InteractionQuestCard : BaseMonobehaviour
|
||||
public class InteractionQuestCard : BaseMonoBehaviour
|
||||
{
|
||||
[SerializeField] QuestFactoryDatabase _questDatabase;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class QuestCardUI : BaseMonobehaviour
|
||||
public class QuestCardUI : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class QuestMini : BaseMonobehaviour
|
||||
public class QuestMini : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class QuestUIController : BaseMonobehaviour
|
||||
public class QuestUIController : BaseMonoBehaviour
|
||||
{
|
||||
|
||||
#region Publics
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using UnityEngine;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class QuestsBoardPanel : BaseMonobehaviour
|
||||
public class QuestsBoardPanel : BaseMonoBehaviour
|
||||
{
|
||||
#region Unity API
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using UnityEngine.Serialization;
|
|||
|
||||
namespace GameUI.Runtime
|
||||
{
|
||||
public class QuestsPanel : BaseMonobehaviour
|
||||
public class QuestsPanel : BaseMonoBehaviour
|
||||
{
|
||||
#region Publics
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue