本文整理汇总了C#中IMinecraftStream.WriteString方法的典型用法代码示例。如果您正苦于以下问题:C# IMinecraftStream.WriteString方法的具体用法?C# IMinecraftStream.WriteString怎么用?C# IMinecraftStream.WriteString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IMinecraftStream
的用法示例。
在下文中一共展示了IMinecraftStream.WriteString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteString(URL);
stream.WriteString(Hash);
stream.Purge();
return this;
}
示例2: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteString(Header);
stream.WriteString(Footer);
stream.Purge();
return this;
}
示例3: WritePacket
public void WritePacket(IMinecraftStream stream)
{
stream.WriteInt32(X);
stream.WriteInt16(Y);
stream.WriteInt32(Z);
stream.WriteString(Text[0]);
stream.WriteString(Text[1]);
stream.WriteString(Text[2]);
stream.WriteString(Text[3]);
}
示例4: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteByte(ID);
stream.WriteString(Label);
stream.WriteString(Action);
stream.WriteInt(KeyCode);
stream.WriteByte((byte) KeyMods);
stream.Purge();
return this;
}
示例5: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteByte(ID);
stream.WriteByte(ProtocolVersion);
stream.WriteString(ServerName);
stream.WriteString(ServerMOTD);
stream.WriteByte((byte) UserType);
stream.Purge();
return this;
}
示例6: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteByte(ID);
stream.WriteByte(ProtocolVersion);
stream.WriteString(Username);
stream.WriteString(VerificationKey);
stream.WriteByte(UnUsed);
stream.Purge();
return this;
}
示例7: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteString(ObjectiveName);
stream.WriteSByte(Mode);
stream.WriteString(ObjectiveValue);
stream.WriteString(Type);
stream.Purge();
return this;
}
示例8: ToStream
public void ToStream(ref IMinecraftStream stream)
{
stream.WriteString(TeamDisplayName);
stream.WriteString(TeamPrefix);
stream.WriteString(TeamSuffix);
stream.WriteByte(FriendlyFire);
stream.WriteString(NameTagVisibility);
stream.WriteByte(Color);
stream.WriteVarInt(Players.Length);
stream.WriteStringArray(Players);
}
示例9: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteString(Username);
stream.WriteInt(Protocol1);
stream.WriteInt(Protocol2);
stream.WriteInt(ClientID);
stream.WriteString(RealmsData);
stream.Purge();
return this;
}
示例10: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
Location.ToStreamLong(stream);
stream.WriteString(Text[0]);
stream.WriteString(Text[1]);
stream.WriteString(Text[2]);
stream.WriteString(Text[3]);
stream.Purge();
return this;
}
示例11: ToStream
public void ToStream(ref IMinecraftStream stream)
{
stream.WriteVarInt(Count);
foreach (var entry in _entries)
{
stream.WriteString(entry.Name);
stream.WriteString(entry.Value);
stream.WriteBoolean(entry.IsSigned);
if (entry.IsSigned)
stream.WriteString(entry.Signature);
}
}
示例12: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteByte(WindowID);
stream.WriteString(InventoryType);
stream.WriteString(WindowTitle);
stream.WriteByte(NumberOfSlots);
if (InventoryType == "EntityHorse")
stream.WriteInt(EntityID.GetValueOrDefault());
stream.Purge();
return this;
}
示例13: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteByte(ID);
stream.WriteByte(EntityID);
stream.WriteString(InGameName);
stream.WriteString(SkinName);
SpawnLocation.ToStreamShort(stream);
stream.WriteByte(SpawnYaw);
stream.WriteByte(SpawnPitch);
stream.Purge();
return this;
}
示例14: WritePacket
public IPacket WritePacket(IMinecraftStream stream)
{
stream.WriteVarInt(ID);
stream.WriteString(ScoreName);
stream.WriteBoolean(RemoveItem);
if (!RemoveItem)
{
stream.WriteString(ObjectiveName);
stream.WriteInt(Value.Value);
}
stream.Purge();
return this;
}
示例15: WritePacket
public void WritePacket(IMinecraftStream stream)
{
stream.WriteInt32(EntityID);
stream.WriteString(""); // Unused
stream.WriteInt64(Seed);
stream.WriteInt8((sbyte)Dimension);
}