Пример #1
0
 public void AddToByteStream(VRage.ByteStream stream)
 {
     base.AddToByteStream(stream);
     stream.addLongList(SpawnOwners);
     stream.addString(DisplayName);
     stream.addLongList(BigOwners);
 }
Пример #2
0
 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
0
        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
0
        public void serialize(VRage.ByteStream stream)
        {
            stream.addString(DisplayName);

            stream.addUShort((ushort)SubTypeStrings.Count);
            foreach (String subTypeString in SubTypeStrings) {
                stream.addString(subTypeString);
            }
        }
Пример #5
0
        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);
            }
        }