migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
29
Assets/_/Features/Tests/Runtime/Triche.cs
Normal file
29
Assets/_/Features/Tests/Runtime/Triche.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Core.Runtime;
|
||||
using Player.Runtime;
|
||||
using Quests.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TestFacts.Runtime
|
||||
{
|
||||
public class Triche : BaseMonobehaviour
|
||||
{
|
||||
[ContextMenu("Add 99999 Gold")]
|
||||
void AddInfiniteGold()
|
||||
{
|
||||
PlayerClass profile = GetFact<PlayerClass>(GameManager.Instance.Profile);
|
||||
profile.Money = 99999;
|
||||
Info("➕99999 Gold added");
|
||||
SaveFacts();
|
||||
}
|
||||
|
||||
[ContextMenu("MAJ Facts = Créer l'historique des events ")]
|
||||
void CreateHistory()
|
||||
{
|
||||
SetFact<Dictionary<Guid, List<QuestEvent>>>("events_quests_history", new Dictionary<Guid, List<QuestEvent>>(), FactPersistence.Persistent);
|
||||
SaveFacts();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue