2025-08-20 07:50:29 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using DDD.RestaurantOrders;
|
2025-08-20 05:07:33 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD
|
|
|
|
{
|
2025-08-20 07:50:29 +00:00
|
|
|
public static class RestaurantOrderSolvers
|
2025-08-20 05:07:33 +00:00
|
|
|
{
|
2025-08-20 07:50:29 +00:00
|
|
|
public static Dictionary<RestaurantOrderType, Type> TypeToOrderSolver = new()
|
2025-08-20 05:07:33 +00:00
|
|
|
{
|
2025-08-20 07:50:29 +00:00
|
|
|
{ RestaurantOrderType.Wait, typeof(RestaurantOrderSolver_Wait) },
|
2025-08-20 09:42:07 +00:00
|
|
|
{ RestaurantOrderType.Reserved, typeof(RestaurantOrderSolver_Reserved) },
|
2025-08-20 07:50:29 +00:00
|
|
|
{ RestaurantOrderType.Order, typeof(RestaurantOrderSolver_Order) },
|
|
|
|
{ RestaurantOrderType.Serve, typeof(RestaurantOrderSolver_Serve) }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2025-08-20 09:55:30 +00:00
|
|
|
public class RestaurantOrderSolver : RestaurantSubsystemSolver<RestaurantOrderType>
|
2025-08-20 07:50:29 +00:00
|
|
|
{
|
2025-08-20 09:55:30 +00:00
|
|
|
protected override Dictionary<RestaurantOrderType, Type> GetSubsystemSolverTypeMappings()
|
2025-08-20 07:50:29 +00:00
|
|
|
{
|
2025-08-20 09:55:30 +00:00
|
|
|
return RestaurantOrderSolvers.TypeToOrderSolver;
|
2025-08-20 05:07:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|