Beispiel #1
0
        internal override int InternalGetMessageSize()
        {
            var arraySize = 0;

            for (var i = 0; i < 17; i++)
            {
                arraySize += ActionGroups[i].GetByteCount();
            }

            return(base.InternalGetMessageSize() + GuidUtil.GetByteSize()
                   + sizeof(double) * 3 + sizeof(bool) * 3 + sizeof(uint)
                   + Name.GetByteCount() + Type.GetByteCount() + Situation.GetByteCount() + LandedAt.GetByteCount() + DisplayLandedAt.GetByteCount() +
                   +arraySize);
        }
Beispiel #2
0
 public int GetByteCount()
 {
     return(GuidUtil.GetByteSize() + sizeof(int) + sizeof(byte) * NumBytes);
 }
Beispiel #3
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + sizeof(int) +
            GuidUtil.GetByteSize() * 2 + sizeof(int) + sizeof(byte) * NumBytes);
 }
Beispiel #4
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + GuidUtil.GetByteSize() + sizeof(bool));
 }
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + GuidUtil.GetByteSize() + sizeof(int) + sizeof(double) * 3 * 6 +
            sizeof(float) * 4 * 1 + sizeof(float) + sizeof(long) + sizeof(double));
 }
Beispiel #6
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + GuidUtil.GetByteSize() + sizeof(uint) + ModuleName.GetByteCount() + BaseModuleName.GetByteCount() + FieldName.GetByteCount() + Value.GetByteCount());
 }
Beispiel #7
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() +
            GuidUtil.GetByteSize() + sizeof(float) * 14 + sizeof(bool) * 4 + sizeof(long) + sizeof(double));
 }
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + GuidUtil.GetByteSize() + NewState.GetByteCount() + EventToRun.GetByteCount() + sizeof(float));
 }
 public int GetByteCount()
 {
     return(PlayerName.GetByteCount() + KerbalName.GetByteCount() + GuidUtil.GetByteSize() + sizeof(LockType));
 }
Beispiel #10
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + sizeof(HandshakeReply) + Reason.GetByteCount() + sizeof(ModControlMode)
            + sizeof(long) + GuidUtil.GetByteSize() + sizeof(int) + sizeof(byte) * NumBytes);
 }
Beispiel #11
0
 internal override int InternalGetMessageSize()
 {
     return(base.InternalGetMessageSize() + sizeof(int) + GuidUtil.GetByteSize() * VesselsCount);
 }