32 lines
932 B
C#
32 lines
932 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ET
|
|
{
|
|
public class MainUIHelper
|
|
{
|
|
public static void GetMainUISlotInfo(UserSetting setting, System.Collections.Generic.List<MainUISlotInfo> mainUISlotList)
|
|
{
|
|
int index = -1;
|
|
foreach (MainUISlot mainuislot in setting.GetMainUISlots())
|
|
{
|
|
++index;
|
|
if (mainuislot == null ||
|
|
mainuislot.MainUIType == MainUIType.NoneSlot)
|
|
{
|
|
continue;
|
|
}
|
|
else
|
|
mainUISlotList.Add(new MainUISlotInfo()
|
|
{
|
|
Index = index,
|
|
Id = mainuislot.RealId,
|
|
MainUIType = mainuislot.MainUIType,
|
|
ItemCount=mainuislot.Count
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|