36 lines
772 B
C#
36 lines
772 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HuanMeng.MiaoYu.Code.Character
|
|
{
|
|
/// <summary>
|
|
/// 角色信息类
|
|
/// </summary>
|
|
public class CharacterBLL : MiaoYuBase
|
|
{
|
|
public CharacterBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public Task<object> GetCharacter(int index)
|
|
{
|
|
|
|
var charactersList = MiaoYuCache.CharactersList.Where(it => it.Visibility).ToList();
|
|
if (charactersList.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
}
|
|
}
|