Пример #1
0
 void ProcessMessage(ClientConnection client, RequestSkillList message)
 {
     client.SkillList(
         Global.ModelSchema.EnumSkill
         .Select(e => Global.ModelSchema.MobileHasSkill.FindByTemplateObjectIDEnumSkillID(
                     client.Avatar.TemplateObjectId, e.EnumSkillID))
         .Where(mhs => mhs != null)
         .Select(mhs => new Tuple <int, double>(mhs.EnumSkillID, mhs.Rating))
         .ToArray());
 }
Пример #2
0
 void ProcessMessage(ClientConnection client, RequestSkillList message)
 {
     client.SkillList(
         Global.Schema.EnumSkill
             .Select(e => Global.Schema.MobileHasSkill.FindByTemplateObjectIDEnumSkillID(
                 client.Avatar.Id, (int)e.EnumSkillID))
             .Where(mhs => mhs != null)
             .Select(mhs => new Tuple<int, double>(mhs.EnumSkillID, mhs.Rating))
             .ToArray());
 }