2024-08-27 12:23:41 +00:00
|
|
|
using System;
|
|
|
|
using BlueWater.Items;
|
2024-10-08 13:44:20 +00:00
|
|
|
using BlueWater.Npcs.Customers;
|
2024-09-12 07:53:16 +00:00
|
|
|
using UnityEngine;
|
2024-08-27 12:23:41 +00:00
|
|
|
|
|
|
|
namespace BlueWater
|
|
|
|
{
|
2024-09-12 07:53:16 +00:00
|
|
|
public static class EventManager
|
2024-08-27 12:23:41 +00:00
|
|
|
{
|
2024-09-12 07:53:16 +00:00
|
|
|
// Global events
|
|
|
|
#region Global events
|
|
|
|
|
2024-09-24 10:35:49 +00:00
|
|
|
// Ui
|
2024-09-12 07:53:16 +00:00
|
|
|
public static Action<float, float, Color?, float> FadeInOut;
|
2024-09-24 10:35:49 +00:00
|
|
|
|
|
|
|
// Player
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action<int> OnMaxHealthChanged;
|
|
|
|
public static Action<int> OnHealthChanged;
|
|
|
|
public static Action OnDead;
|
2024-09-24 10:35:49 +00:00
|
|
|
|
|
|
|
// 상호작용
|
|
|
|
public static Action<string> OnShowInteractionUi;
|
|
|
|
public static Action OnHideInteractionUi;
|
2024-09-12 07:53:16 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
// Tycoon events
|
|
|
|
#region Tycoon events
|
2024-09-30 09:41:55 +00:00
|
|
|
|
|
|
|
// 플레이어
|
|
|
|
public static Action<LevelData> OnLevelUp;
|
2024-10-06 23:41:09 +00:00
|
|
|
public static Action<int> OnChangeGold;
|
2024-10-08 06:13:52 +00:00
|
|
|
public static Action<ExpData> OnChangeExp;
|
2024-09-30 09:41:55 +00:00
|
|
|
|
|
|
|
// Npc
|
|
|
|
public static Action OnCreateCustomer;
|
2024-10-08 13:44:20 +00:00
|
|
|
public static Action<Customer> OnOrderedCocktail;
|
|
|
|
public static Action<Customer, bool> OnOrderResult;
|
2024-09-12 07:53:16 +00:00
|
|
|
|
2024-08-27 12:23:41 +00:00
|
|
|
// 음료
|
2024-09-10 07:26:29 +00:00
|
|
|
// public static Action<string> OnDrinkRecipeAcquired;
|
|
|
|
// public static Action<LiquidData> OnDrinkRecipeSelected;
|
2024-09-23 02:00:21 +00:00
|
|
|
|
2024-09-30 09:41:55 +00:00
|
|
|
public static Action OnTycoonGameStarted;
|
|
|
|
public static Action OnTycoonGameOvered;
|
2024-09-09 12:27:15 +00:00
|
|
|
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action OnCocktailStarted;
|
2024-09-10 10:25:05 +00:00
|
|
|
public static Action<CocktailData> OnCocktailCompleted;
|
|
|
|
public static Action OnCocktailDiscarded;
|
|
|
|
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action OnPlaceOnServingTable;
|
|
|
|
public static Action OnTakeFromServingTable;
|
2024-09-10 10:25:05 +00:00
|
|
|
|
2024-09-30 12:05:19 +00:00
|
|
|
public static Action<CocktailData> OnCocktailServedToCustomer;
|
|
|
|
|
2024-10-06 23:41:09 +00:00
|
|
|
public static Action<float> OnInteracting;
|
|
|
|
|
2024-08-27 12:23:41 +00:00
|
|
|
// 요리
|
2024-09-10 10:25:05 +00:00
|
|
|
//public static Action<string> OnFoodRecipeAcquired;
|
2024-09-12 07:53:16 +00:00
|
|
|
|
|
|
|
#endregion
|
2024-08-27 12:23:41 +00:00
|
|
|
}
|
|
|
|
}
|