protected override void OnWrite()
 {
     GameNetworkMessage.WriteMissionObjectIdToPacket(this.ObjectId);
     GameNetworkMessage.WriteStringToPacket(this.Prefab);
     GameNetworkMessage.WriteMatrixFrameToPacket(this.Frame);
     GameNetworkMessage.WriteIntToPacket(this.ChildObjectIds.Count, CompressionBasic.EntityChildCountCompressionInfo);
     foreach (MissionObjectId childObjectId in this.ChildObjectIds)
     {
         GameNetworkMessage.WriteMissionObjectIdToPacket(childObjectId);
     }
 }
Ejemplo n.º 2
0
 protected override void OnWrite()
 {
     GameNetworkMessage.WriteMissionObjectIdToPacket(this.ObjectId);
     GameNetworkMessage.WriteMissionObjectReferenceToPacket(this.Parent);
     GameNetworkMessage.WriteNonUniformTransformToPacket(this.Frame, CompressionBasic.PositionCompressionInfo, CompressionBasic.LowResQuaternionCompressionInfo);
 }