17 lines
522 B
C#
17 lines
522 B
C#
|
|
using Code.Gameplay.Orders.Order;
|
|
using Cysharp.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace Code.Generator
|
|
{
|
|
public interface IRoomGeneratorFactory
|
|
{
|
|
UniTask PreloadRooms(IOrderService orderService);
|
|
GameObject GetCachedPrefab(int index, RoomType roomType);
|
|
Room CreateRoomByIndex(int index, RoomType roomType);
|
|
void ReleaseRooms();
|
|
GameObject GetRandomCachedPrefabOfType(RoomType roomType, out int index);
|
|
int GetRandomIndexOfType(RoomType roomType);
|
|
}
|
|
} |