Beispiel #1
0
 public object Clone()
 {
     return(new LockDefinition
     {
         KerbalName = KerbalName.Clone() as string,
         PlayerName = PlayerName.Clone() as string,
         VesselId = VesselId,
         Type = Type
     });
 }
Beispiel #2
0
 public int GetByteCount()
 {
     return(PlayerName.GetByteCount() + KerbalName.GetByteCount() + GuidUtil.ByteSize + sizeof(LockType));
 }