本文整理汇总了C#中VRage.addString方法的典型用法代码示例。如果您正苦于以下问题:C# VRage.addString方法的具体用法?C# VRage.addString怎么用?C# VRage.addString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VRage
的用法示例。
在下文中一共展示了VRage.addString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddToByteStream
public void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
stream.addLongList(SpawnOwners);
stream.addString(DisplayName);
stream.addLongList(BigOwners);
}
示例2: serialize
public void serialize(VRage.ByteStream stream)
{
stream.addLong((long)Position.X);
stream.addLong((long)Position.Y);
stream.addLong((long)Position.Z);
stream.addString(Name);
stream.addLong(Radius);
stream.addLong(TokensPerPeriod);
}
示例3: serialize
public void serialize(VRage.ByteStream stream)
{
stream.addBoolean(SupportedByFleet);
stream.addLong(Grid.EntityId);
stream.addUShort((ushort)m_EffectiveClass);
stream.addString(Grid.DisplayName);
stream.addUShort((ushort)BlockCount);
// Serialize position data if the owner of the grid
if (Grid.canInteractWith(Owner.PlayerID)) {
stream.addBoolean(true);
stream.addLong((long)Grid.GetPosition().X);
stream.addLong((long)Grid.GetPosition().Y);
stream.addLong((long)Grid.GetPosition().Z);
}
else {
stream.addBoolean(false);
}
}
示例4: serialize
public void serialize(VRage.ByteStream stream)
{
stream.addString(DisplayName);
stream.addUShort((ushort)SubTypeStrings.Count);
foreach (String subTypeString in SubTypeStrings) {
stream.addString(subTypeString);
}
}
示例5: serialize
public void serialize(VRage.ByteStream stream)
{
stream.addString(DisplayName);
stream.addUShort((ushort)MaxPerFaction);
stream.addUShort((ushort)MaxPerSoloPlayer);
stream.addUShort((ushort)CaptureMultiplier);
stream.addLong(MaxBlocks);
stream.addBoolean(ShouldBeStation);
stream.addUShort((ushort)BlockTypeLimits.Length);
foreach (int limit in BlockTypeLimits) {
stream.addUShort((ushort)limit);
}
}