You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Sog;
|
|
using ProtoCSStruct;
|
|
|
|
namespace Game
|
|
{
|
|
public class IconFrameSvc
|
|
{
|
|
|
|
public static void TiggerPlayerBornEvent(PlayerOnGame player)
|
|
{
|
|
player.Trace("IconFrameSvc.TiggerPlayerBornEvent player {0} dataSeq {1}"
|
|
, player.UserID, player.DataSeq);
|
|
//UpdateIconArr(player);
|
|
}
|
|
|
|
//private static void UpdateIconArr(PlayerOnGame player)
|
|
//{
|
|
// ref var sysData = ref player.RoleData.SysData;
|
|
// for (int i = sysData.IconFrameBitMap.Count; i < sysData.IconFrameBitMap.GetMaxCount(); i++)
|
|
// {
|
|
// sysData.IconFrameBitMap.Add(0);
|
|
// }
|
|
//}
|
|
|
|
|
|
|
|
|
|
public static int GetIconFrameIdx(PlayerOnGame player, int id)
|
|
{
|
|
ref var data = ref player.RoleData.IconFrameData;
|
|
for (int i = 0; i < data.List.Count; i++)
|
|
{
|
|
if (data.List[i].Id == id)
|
|
{
|
|
return i;
|
|
}
|
|
}
|
|
|
|
return -1;
|
|
}
|
|
|
|
|
|
}
|
|
}
|