本文整理汇总了C#中System.Utils.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.WriteBool方法的具体用法?C# Utils.WriteBool怎么用?C# Utils.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Utils
的用法示例。
在下文中一共展示了Utils.WriteBool方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: serialize
public static void serialize(Utils.Objects.Packet sender, int accountId)
{
sender.WriteInt(accountId);
sender.WriteBool(false); // tutorial available
sender.WriteShort(8191); // breeds visible
sender.WriteShort(2047); // breeds available
}
示例2: serialize
public static void serialize(Utils.Objects.Packet sender, string login, string hashedPasswd, bool autoConnect)
{
Version.serialize(sender);
sender.WriteUTF(login);
sender.WriteUTF(hashedPasswd);
sender.WriteBool(autoConnect);
}
示例3: serialize
public void serialize(Utils.Objects.Packet sender)
{
// MINIMAL INFO
sender.WriteInt(Member.Guid);
sender.WriteByte((byte)Member.Level);
sender.WriteUTF(Member.Name);
// LOOK
sender.WriteShort(1); // bones ID
sender.WriteShort(1); // nSkins
sender.WriteShort((short)((int)Member.Classe * 10 + (int)Member.Sexe));
sender.WriteShort((short)5);
for (int i = 0; i < 5; ++i)
sender.WriteInt(Member.Colors[i] | (i + 1) * 0x1000000);
sender.WriteShort(1); // nScales
sender.WriteShort((short)140);
sender.WriteShort(0); // nSubEntities
// PARTY
sender.WriteInt(Member.Characteristics.lifePoints);
sender.WriteInt(Member.Characteristics.maxLifePoints);
sender.WriteShort((short)Member.Characteristics.prospecting.Total);
sender.WriteByte(0); // regenRate
sender.WriteShort((short)Member.Characteristics.initiative.Total);
sender.WriteBool(false); // pvp enabled
sender.WriteByte(0); // alignment side
}
示例4: serialize
public static void serialize(Utils.Objects.Packet sender, string ticket, string senderIp)
{
sender.WriteShort( (short)GlobalConfig.Network.Game.Guid );
sender.WriteUTF(senderIp == "127.0.0.1" ? "127.0.0.1" : GlobalConfig.Network.IP);
sender.WriteUShort( (ushort)GlobalConfig.Network.Game.Port );
sender.WriteBool(true); // can create characters
sender.WriteUTF(ticket);
}
示例5: serialize
public static void serialize(Utils.Objects.Packet sender, Global.Party party)
{
sender.WriteInt(party.Leader.Guid);
sender.WriteShort((short)party.Members.Count);
foreach (Global.Character member in party.Members)
new Types.game.context.PartyMemberInformations(member).serialize(sender);
sender.WriteBool(false); // restricted ??
}
示例6: serialize
public static void serialize(Utils.Objects.Packet sender, Global.Account acc)
{
sender.WriteShort(1); // nGameServers
sender.WriteUShort((ushort)GlobalConfig.Network.Game.Guid);
sender.WriteByte((byte)ServerState.ONLINE);
sender.WriteByte(0); // completion
sender.WriteBool(true); // selectable
sender.WriteByte( (byte)acc.Characters.Count );
}
示例7: serialize
public static void serialize(Utils.Objects.Packet sender, List<Global.Character> characters)
{
// On classe la liste dans l'ordre décroissant de la dernière utilisation
characters = characters.OrderByDescending(x => x.LastUse).ToList();
sender.WriteBool(false); // hasStartupActions
sender.WriteShort( (short)characters.Count );
foreach (Global.Character each in characters)
{
new Types.game.character.CharacterBaseInformations(each).serialize(sender);
}
}
开发者ID:Emudofus,项目名称:Aldos,代码行数:13,代码来源:CharactersListMessage+(Antoine-PC's+conflicted+copy+2011-02-12).cs
示例8: serialize
public void serialize(Utils.Objects.Packet sender)
{
sender.WriteByte((byte)alignmentSide);
sender.WriteByte((byte)alignmentValue);
sender.WriteByte((byte)alignmentGrade);
sender.WriteShort((short)dishonor);
sender.WriteInt(characterPower);
sender.WriteShort((short)honor);
sender.WriteShort((short)honorGradeFloor);
sender.WriteShort((short)honorNextGradeFloor);
sender.WriteBool(pvpEnabled);
}
示例9: serialize
public void serialize(Utils.Objects.Packet sender)
{
// MINIMAL INFO
sender.WriteInt((int)Member.Id);
sender.WriteByte((byte)Member.Level);
sender.WriteUTF(Member.Name);
Member.Look.serialize(sender);
// PARTY
sender.WriteInt(Member.Characteristics.lifePoints);
sender.WriteInt(Member.Characteristics.maxLifePoints);
sender.WriteShort((short)Member.Characteristics.prospecting.Total);
sender.WriteByte(0); // regenRate
sender.WriteShort((short)Member.Characteristics.initiative.Total);
sender.WriteBool(false); // pvp enabled
sender.WriteByte(0); // alignment side
}
示例10: serialize
public static void serialize(Utils.Objects.Packet sender, string ticket)
{
sender.WriteBool(true);
sender.WriteUTF(ticket);
}
示例11: serialize
public static void serialize(Utils.Objects.Packet sender)
{
sender.WriteBool(true);
sender.WriteShort(0);
}
示例12: serialize
public static void serialize(Utils.Objects.Packet sender, string target, bool success)
{
sender.WriteBool(success);
sender.WriteUTF(target);
}
示例13: serialize
public static void serialize(Utils.Objects.Packet sender, Channel target, bool enable)
{
sender.WriteByte((byte)target);
sender.WriteBool(enable);
}
示例14: serializeAs_PartyJoinMessage
public void serializeAs_PartyJoinMessage(Utils.Objects.Packet sender)
{
sender.WriteInt(_leaderId);
sender.WriteShort((short)_members.Count);
foreach (Global.Character member in _members)
new Network.Types.game.context.PartyMemberInformations(member).serialize(sender);
sender.WriteBool(false); // restricted ??
}