本文整理汇总了C#中VRage.addLongList方法的典型用法代码示例。如果您正苦于以下问题:C# VRage.addLongList方法的具体用法?C# VRage.addLongList怎么用?C# VRage.addLongList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VRage
的用法示例。
在下文中一共展示了VRage.addLongList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddToByteStream
public void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
stream.addLongList(SpawnOwners);
stream.addString(DisplayName);
stream.addLongList(BigOwners);
}
示例2: AddToByteStream
// Byte Serialization
public override void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
UpdateConcealabilityManual();
stream.addBoolean(IsObserved);
stream.addBoolean(IsRevealBlocked);
stream.addLongList(EntitiesViewedBy.Keys.ToList());
stream.addDateTime(RevealedAt);
}
示例3: AddToByteStream
// Byte Serialization
public override void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
//Log.Trace("Adding observing entity to byte stream", "AddToByteStream");
stream.addLongList(EntitiesViewing.Keys.ToList());
stream.addDateTime(LastObservingTime);
stream.addVector3D(LastObservingPosition);
//Log.Trace("Serialized LastObservingTime of " + LastObservingTime, "AddToByteStream");
//Log.Trace("Serialized LastObservingPosition of " + LastObservingPosition, "AddToByteStream");
//Log.Trace("Serialized ViewDistance of " + ViewDistance, "AddToByteStream");
}
示例4: AddToByteStream
// Byte Serialization
public virtual void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
Log.Trace("Adding Revealed Grid to byte stream", "AddToByteStream");
if (SpawnOwners == null) {
Log.Error("Serializing with null spawnowners", "AddToByteStream");
SpawnOwners = new List<long>();
}
if (BigOwners == null) {
Log.Error("Serializing with null BigOwners", "AddToByteStream");
BigOwners = new List<long>();
}
Log.Info("Adding spawnowners ", "FromBytes");
stream.addLongList(SpawnOwners);
Log.Info("Adding BigOwners ", "FromBytes");
stream.addLongList(BigOwners);
stream.addBoolean(NeededForSpawn);
stream.addBoolean(IsProducing);
stream.addBoolean(IsChargingBatteries);
stream.addBoolean(IsPiloted);
}
示例5: AddToByteStream
// Byte Serialization
public override void AddToByteStream(VRage.ByteStream stream)
{
base.AddToByteStream(stream);
stream.addLongList(SpawnOwners);
stream.addLongList(BigOwners);
}