本文整理汇总了C#中BlueSheep.Interface.AccountUC.SetStatus方法的典型用法代码示例。如果您正苦于以下问题:C# AccountUC.SetStatus方法的具体用法?C# AccountUC.SetStatus怎么用?C# AccountUC.SetStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Interface.AccountUC
的用法示例。
在下文中一共展示了AccountUC.SetStatus方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NpcDialogCreationMessageTreatment
public static void NpcDialogCreationMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
LeaveDialogMessage msg = (LeaveDialogMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
account.SetStatus(Status.None);
}
示例2: GameContextRemoveElementMessageTreatment
public static void GameContextRemoveElementMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
ExchangeStartOkNpcShopMessage msg = (ExchangeStartOkNpcShopMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
account.SetStatus(Status.Exchanging);
}
示例3: LeaveDialogMessageTreatment
public static void LeaveDialogMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
NpcDialogCreationMessage msg = (NpcDialogCreationMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
account.Npc.Id = msg.npcId;
account.Npc.Entity = account.MapData.Npcs.FirstOrDefault((npc) => npc.contextualId == msg.npcId);
account.SetStatus(Status.Speaking);
}
示例4: HelloConnectMessageTreatment
public static void HelloConnectMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
account.SetStatus(Status.None);
if (!account.IsMITM)
{
HelloConnectMessage helloConnectMessage = (HelloConnectMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
helloConnectMessage.Deserialize(reader);
}
sbyte[] credentials = RSAKey.Encrypt(helloConnectMessage.key,
account.AccountName,
account.AccountPassword,
helloConnectMessage.salt);
IdentificationMessage msg = new IdentificationMessage(GameConstants.AutoConnect, GameConstants.UseCertificate, GameConstants.UseLoginToken, new Common.Protocol.Types.VersionExtended(GameConstants.Major, GameConstants.Minor, GameConstants.Release, GameConstants.Revision, GameConstants.Patch, GameConstants.BuildType, GameConstants.Install, GameConstants.Technology), GameConstants.Lang, credentials, GameConstants.ServerID, GameConstants.SessionOptionalSalt, new System.Collections.Generic.List<short>() );
account.SocketManager.Send(msg);
}
account.Log(new ConnectionTextInformation("Identification en cours."), 0);
}
示例5: GameFightPlacementPossiblePositionsMessageTreatment
public static void GameFightPlacementPossiblePositionsMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
GameFightPlacementPossiblePositionsMessage msg = (GameFightPlacementPossiblePositionsMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
account.SetStatus(Status.Fighting);
account.FightData.UpdateTurn(0);
if (account.Fight != null)
{
account.Fight.PlaceCharacter(msg.positionsForChallengers.ToList());
}
if (account.WithItemSetBox.Checked == true)
{
sbyte id = (sbyte)account.PresetStartUpD.Value;
InventoryPresetUseMessage msg2 = new InventoryPresetUseMessage((sbyte)(id - 1));
account.SocketManager.Send(msg2);
account.Log(new ActionTextInformation("Equipement rapide numero " + Convert.ToString(id)), 5);
}
GameFightReadyMessage nmsg = new GameFightReadyMessage(true);
account.SocketManager.Send(nmsg);
account.Log(new BotTextInformation("Send Ready !"), 5);
}
示例6: GameEntitiesDispositionMessageTreatment
public static void GameEntitiesDispositionMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
GameEntitiesDispositionMessage msg = (GameEntitiesDispositionMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
if (account.Fight != null)
{
msg.dispositions.ToList().ForEach(d =>
{
account.FightData.UpdateFighterCell(d.id, d.cellId);
});
}
account.SetStatus(Status.Fighting);
}
示例7: InteractiveUseEndedMessageTreatment
public static void InteractiveUseEndedMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
InteractiveUseEndedMessage msg = (InteractiveUseEndedMessage)message;
using (BigEndianReader reader = new BigEndianReader(packetDatas))
{
msg.Deserialize(reader);
}
if (account.Gather.Id == -1)
return;
account.SetStatus(Status.None);
account.Gather.Id = -1;
if (account.Path != null)
account.Path.PerformFlag();
}