public static SetupShop ( int type, Chest shop, int &nextSlot ) : void | ||
type | int | |
shop | Chest | |
nextSlot | int | |
리턴 | void |
public static void SetupShop(int type, Chest shop, ref int nextSlot)
{
if (type < shopToNPC.Length)
{
type = shopToNPC[type];
}
else
{
GetNPC(type)?.SetupShop(shop, ref nextSlot);
}
foreach (var hook in HookSetupShop)
{
hook(type, shop, ref nextSlot);
}
}