using System.Collections.Generic;
|
|
public partial class PhantasmPavilionManager : GameSystemManager<PhantasmPavilionManager>
|
{
|
readonly public Dictionary<PhantasmPavilionType, IPhantasmPavilionHandler> handlers = new Dictionary<PhantasmPavilionType, IPhantasmPavilionHandler>()
|
{
|
{ PhantasmPavilionType.Face, new PhantasmPavilionFaceHandler() },
|
{ PhantasmPavilionType.FacePic, new PhantasmPavilionFacePicHandler() },
|
{ PhantasmPavilionType.ChatBox, new PhantasmPavilionChatBoxHandler() },
|
{ PhantasmPavilionType.Title, new PhantasmPavilionTitleHandler() },
|
{ PhantasmPavilionType.Model, new PhantasmPavilionModelHandler() },
|
};
|
public bool TryGetHandlerValue(PhantasmPavilionType type, out IPhantasmPavilionHandler handler)
|
{
|
return handlers.TryGetValue(type, out handler);
|
}
|
|
// 一行展示x个物品
|
public readonly Dictionary<PhantasmPavilionType, int> rowCountMaxDict = new Dictionary<PhantasmPavilionType, int>()
|
{
|
{PhantasmPavilionType.Face, 4},
|
{PhantasmPavilionType.FacePic, 4},
|
{PhantasmPavilionType.ChatBox, 3},
|
{PhantasmPavilionType.Title, 3},
|
{PhantasmPavilionType.Model, 5},
|
};
|
|
public bool TryGetRowCountMax(PhantasmPavilionType type, out int rowCountMax)
|
{
|
return rowCountMaxDict.TryGetValue(type, out rowCountMax);
|
}
|
}
|