ProjectDDD/Assets/_DDD/_Scripts/RestaurantEvent/Solvers/RestaurantOrderSolver.cs

26 lines
886 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using DDD.RestaurantOrders;
using UnityEngine;
namespace DDD
{
public static class RestaurantOrderSolvers
{
public static Dictionary<RestaurantOrderType, Type> TypeToOrderSolver = new()
{
{ RestaurantOrderType.Wait, typeof(RestaurantOrderSolver_Wait) },
{ RestaurantOrderType.Reserved, typeof(RestaurantOrderSolver_Reserved) },
{ RestaurantOrderType.Order, typeof(RestaurantOrderSolver_Order) },
{ RestaurantOrderType.Serve, typeof(RestaurantOrderSolver_Serve) }
};
}
public class RestaurantOrderSolver : RestaurantSubsystemSolver<RestaurantOrderType>
{
protected override Dictionary<RestaurantOrderType, Type> GetSubsystemSolverTypeMappings()
{
return RestaurantOrderSolvers.TypeToOrderSolver;
}
}
}