本文整理汇总了C#中Client.ReviewMentor方法的典型用法代码示例。如果您正苦于以下问题:C# Client.ReviewMentor方法的具体用法?C# Client.ReviewMentor怎么用?C# Client.ReviewMentor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client
的用法示例。
在下文中一共展示了Client.ReviewMentor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandlePacket
//.........这里部分代码省略.........
{
ExpelApprentice(ma, client);
break;
}
case MentorApprentice.RequestApprentice:
{
AddApprentice(ma, client);
break;
}
case MentorApprentice.RequestMentor:
{
AddMentor(ma, client);
break;
}
case MentorApprentice.AcceptRequestApprentice:
{
AcceptRequestApprentice(ma, client);
break;
}
case MentorApprentice.AcceptRequestMentor:
{
AcceptRequestMentor(ma, client);
break;
}
}
break;
}
case 2066:
{
MentorInformation info = new MentorInformation(false);
info.Deserialize(packet);
if (info.Mentor_Type == 1)
{
client.ReviewMentor();
}
break;
}
#endregion
#region Guild members (2102)
case 2102:
{
ushort Page = BitConverter.ToUInt16(packet, 8);
if (client.Guild != null)
{
if (client.AsMember != null)
client.Guild.SendMembers(client, Page);
}
break;
}
#endregion
#region Arena (2207<->2211)
case 2207://Request Arena ranking List 2245 2242 2244
{
//Code snippet that belongs to Ultimation
ushort PageIndex = BitConverter.ToUInt16(packet, 6);
Game.ConquerStructures.Arena.Statistics.ShowRankingPage(packet[4], PageIndex, client);
break;
}
case 2206:
{
//Code snippet that belongs to Ultimation
ushort PageIndex = BitConverter.ToUInt16(packet, 4);
Game.ConquerStructures.Arena.QualifyEngine.RequestGroupList(client, PageIndex);
break;
}
case 2205://Arena Signup!
示例2: AcceptRequestApprentice
static void AcceptRequestApprentice(MentorApprentice ma, Client.GameState client)
{
Client.GameState Target = null;
if (ServerBase.Kernel.GamePool.TryGetValue(ma.UID, out Target))
{
if (ma.Dynamic == 1)
{
uint EnroleDate = (uint)(DateTime.Now.Year * 10000 + DateTime.Now.Month * 100 + DateTime.Now.Day);
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = Target.Entity.UID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = EnroleDate;
Information.Mentor_Level = Target.Entity.Level;
Information.Mentor_Class = Target.Entity.Class;
Information.Mentor_PkPoints = Target.Entity.PKPoints;
Information.Mentor_Mesh = Target.Entity.Mesh;
Information.Mentor_Online = true;
Information.Shared_Battle_Power = ((uint)(((Target.Entity.BattlePower - Target.Entity.ExtraBattlePower) - (client.Entity.BattlePower - client.Entity.ExtraBattlePower)) / 3.3F));
Information.String_Count = 3;
Information.Mentor_Name = Target.Entity.Name;
Information.Apprentice_Name = client.Entity.Name;
Information.Mentor_Spouse_Name = Target.Entity.Spouse;
client.Send(Information);
client.Mentor = new PhoenixProject.Game.ConquerStructures.Society.Mentor();
client.Mentor.ID = Target.Entity.UID;
client.Mentor.Name = Target.Entity.Name;
client.Mentor.EnroleDate = EnroleDate;
client.ReviewMentor();
ApprenticeInformation AppInfo = new ApprenticeInformation();
AppInfo.Apprentice_ID = client.Entity.UID;
AppInfo.Apprentice_Level = client.Entity.Level;
AppInfo.Apprentice_Name = client.Entity.Name;
AppInfo.Apprentice_Online = true;
AppInfo.Apprentice_Class = client.Entity.Class;
AppInfo.Apprentice_PkPoints = client.Entity.PKPoints;
AppInfo.Apprentice_Spouse_Name = client.Entity.Spouse;
AppInfo.Enrole_date = EnroleDate;
AppInfo.Mentor_ID = Target.Entity.UID;
AppInfo.Mentor_Mesh = Target.Entity.Mesh;
AppInfo.Mentor_Name = Target.Entity.Name;
AppInfo.Type = 2;
Target.Send(AppInfo);
Target.Apprentices.Add(client.Entity.UID, new PhoenixProject.Game.ConquerStructures.Society.Apprentice()
{
ID = client.Entity.UID,
Name = client.Entity.Name,
EnroleDate = EnroleDate
});
Database.KnownPersons.AddMentor(client.Mentor, Target.Apprentices[client.Entity.UID]);
}
else
{
Target.Send(new Message(client.Entity.Name + " declined your request.", System.Drawing.Color.Beige, Message.Talk));
}
}
}
示例3: LoginMessages
//.........这里部分代码省略.........
}
ServerTime time = new ServerTime();
time.Year = (uint)DateTime.Now.Year;
time.Month = (uint)DateTime.Now.Month;
time.DayOfYear = (uint)DateTime.Now.DayOfYear;
time.DayOfMonth = (uint)DateTime.Now.Day;
time.Hour = (uint)DateTime.Now.Hour;
time.Minute = (uint)DateTime.Now.Minute;
time.Second = (uint)DateTime.Now.Second;
client.Send(time);
client.Entity.DoubleExperienceTime = (ushort)(client.Entity.DoubleExperienceTime + (1 - 1));
client.Entity.HeavenBlessing = (ushort)(client.Entity.HeavenBlessing + (1 - 1));
if (client.Mentor != null)
{
if (client.Mentor.IsOnline)
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.Client.Entity.UID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Level = client.Mentor.Client.Entity.Level;
Information.Mentor_Class = client.Mentor.Client.Entity.Class;
Information.Mentor_PkPoints = client.Mentor.Client.Entity.PKPoints;
Information.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
Information.Mentor_Online = true;
Information.Shared_Battle_Power = (uint)(((client.Mentor.Client.Entity.BattlePower - client.Mentor.Client.Entity.ExtraBattlePower) - (client.Entity.BattlePower - client.Entity.ExtraBattlePower)) / 3.3F);
Information.String_Count = 3;
Information.Mentor_Name = client.Mentor.Client.Entity.Name;
Information.Apprentice_Name = client.Entity.Name;
Information.Mentor_Spouse_Name = client.Mentor.Client.Entity.Spouse;
client.ReviewMentor();
client.Send(Information);
ApprenticeInformation AppInfo = new ApprenticeInformation();
AppInfo.Apprentice_ID = client.Entity.UID;
AppInfo.Apprentice_Level = client.Entity.Level;
AppInfo.Apprentice_Class = client.Entity.Class;
AppInfo.Apprentice_PkPoints = client.Entity.PKPoints;
AppInfo.Apprentice_Experience = client.AsApprentice.Actual_Experience;
AppInfo.Apprentice_Composing = client.AsApprentice.Actual_Plus;
AppInfo.Apprentice_Blessing = client.AsApprentice.Actual_HeavenBlessing;
AppInfo.Apprentice_Name = client.Entity.Name;
AppInfo.Apprentice_Online = true;
AppInfo.Apprentice_Spouse_Name = client.Entity.Spouse;
AppInfo.Enrole_date = client.Mentor.EnroleDate;
AppInfo.Mentor_ID = client.Mentor.ID;
AppInfo.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
AppInfo.Mentor_Name = client.Mentor.Name;
AppInfo.Type = 2;
client.Mentor.Client.Send(AppInfo);
}
else
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.ID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Online = false;
Information.String_Count = 2;
Information.Mentor_Name = client.Mentor.Name;
Information.Apprentice_Name = client.Entity.Name;
示例4: LeaveMentor
static void LeaveMentor(MentorApprentice ma, Client.GameState client)
{
if (client.Mentor != null)
{
if (client.Mentor.IsOnline)
{
ma.Type = MentorApprentice.DumpMentor;
client.Send(ma);
ma.Type = MentorApprentice.DumpApprentice;
client.Mentor.Client.Send(ma);
ApprenticeInformation AppInfo = new ApprenticeInformation();
AppInfo.Apprentice_ID = client.Entity.UID;
AppInfo.Apprentice_Level = client.Entity.Level;
AppInfo.Apprentice_Class = client.Entity.Class;
AppInfo.Apprentice_PkPoints = client.Entity.PKPoints;
AppInfo.Apprentice_Name = client.Entity.Name;
AppInfo.Apprentice_Online = false;
AppInfo.Apprentice_Spouse_Name = client.Entity.Spouse;
AppInfo.Enrole_date = 0;
AppInfo.Mentor_ID = client.Mentor.Client.Entity.UID;
AppInfo.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
AppInfo.Mentor_Name = client.Mentor.Client.Entity.Name;
AppInfo.Type = 2;
client.Mentor.Client.Send(AppInfo);
client.Mentor.Client.Apprentices.Remove(client.Entity.UID);
client.Mentor = null;
client.ReviewMentor();
}
Database.KnownPersons.RemoveMentor(client.Entity.UID);
}
}
示例5: LoginMessages
//.........这里部分代码省略.........
{
client.Entity.AddFlag(Update.Flags.TopGuildLeader);
}
}
}
client.Entity.DoubleExperienceTimeV1 = (ushort)(client.Entity.DoubleExperienceTimeV1 + (1 - 1));
client.Entity.DoubleExperienceTime = (ushort)(client.Entity.DoubleExperienceTime + (1 - 1));
client.Entity.DoubleExperienceTime5 = (ushort)(client.Entity.DoubleExperienceTime5 + (1 - 1));
client.Entity.DoubleExperienceTime10 = (ushort)(client.Entity.DoubleExperienceTime10 + (1 - 1));
client.Entity.DoubleExperienceTime15 = (ushort)(client.Entity.DoubleExperienceTime15 + (1 - 1));
client.Entity.HeavenBlessing = (ushort)(client.Entity.HeavenBlessing + (1 - 1));
if (client.Mentor != null)
{
if (client.Mentor.IsOnline)
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.Client.Entity.UID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Level = client.Mentor.Client.Entity.Level;
Information.Mentor_Class = client.Mentor.Client.Entity.Class;
Information.Mentor_PkPoints = client.Mentor.Client.Entity.PKPoints;
Information.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
Information.Mentor_Online = true;
Information.Shared_Battle_Power = (uint)(((client.Mentor.Client.Entity.BattlePower - client.Mentor.Client.Entity.ExtraBattlePower) - (client.Entity.BattlePower - client.Entity.ExtraBattlePower)) / 3.3F);
Information.String_Count = 3;
Information.Mentor_Name = client.Mentor.Client.Entity.Name;
Information.Apprentice_Name = client.Entity.Name;
Information.Mentor_Spouse_Name = client.Mentor.Client.Entity.Spouse;
client.ReviewMentor();
client.Send(Information);
ApprenticeInformation AppInfo = new ApprenticeInformation();
AppInfo.Apprentice_ID = client.Entity.UID;
AppInfo.Apprentice_Level = client.Entity.Level;
AppInfo.Apprentice_Class = client.Entity.Class;
AppInfo.Apprentice_PkPoints = client.Entity.PKPoints;
AppInfo.Apprentice_Experience = client.AsApprentice.Actual_Experience;
AppInfo.Apprentice_Composing = client.AsApprentice.Actual_Plus;
AppInfo.Apprentice_Blessing = client.AsApprentice.Actual_HeavenBlessing;
AppInfo.Apprentice_Name = client.Entity.Name;
AppInfo.Apprentice_Online = true;
AppInfo.Apprentice_Spouse_Name = client.Entity.Spouse;
AppInfo.Enrole_date = client.Mentor.EnroleDate;
AppInfo.Mentor_ID = client.Mentor.ID;
AppInfo.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
AppInfo.Mentor_Name = client.Mentor.Name;
AppInfo.Type = 2;
client.Mentor.Client.Send(AppInfo);
}
else
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.ID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Online = false;
Information.String_Count = 2;
Information.Mentor_Name = client.Mentor.Name;
Information.Apprentice_Name = client.Entity.Name;
示例6: HandlePacket
//.........这里部分代码省略.........
{
ExpelApprentice(ma, client);
break;
}
case MentorApprentice.RequestApprentice:
{
AddApprentice(ma, client);
break;
}
case MentorApprentice.RequestMentor:
{
AddMentor(ma, client);
break;
}
case MentorApprentice.AcceptRequestApprentice:
{
AcceptRequestApprentice(ma, client);
break;
}
case MentorApprentice.AcceptRequestMentor:
{
AcceptRequestMentor(ma, client);
break;
}
}
break;
}
case 2066:
{
MentorInformation info = new MentorInformation(false);
info.Deserialize(packet);
if (info.Mentor_Type == 1)
{
client.ReviewMentor();
}
break;
}
#endregion
#region PurifyItem (2076)
case 2076:
{
Purification ps = new Purification(false);
ps.Deserialize(packet);
switch (ps.Mode)
{
case Purification.Purify:
PurifyItem(ps, client); break;
case Purification.Purify1:
new Game.Features.Refinery.Handle(packet, client);
break;
}
break;
}
#endregion
#region Arsenal Guild
case 2202:
{
ArsenalInscribitionList list = new ArsenalInscribitionList();
client.Send(list.Build(packet, client.Guild));
break;
}
case 2203:
{
client.Guild.Arsenal.Update(client.Guild);