Example #1
0
 public GenerateMessage(Profile generateProfile)
     : base(MessageType.GenerateRequest, generateProfile)
 {
 }
Example #2
0
 public ProfileMessage(MessageType messageType, int messageNumber, Connection connection, byte[] messageBody)
     : base(messageType, messageNumber, connection)
 {
     MemoryStream stream = new MemoryStream(messageBody);
     BinaryReader reader = new BinaryReader(stream);
     generateProfile = new Profile();
     generateProfile.BoardStyle = (MeshType)reader.ReadInt32();
     generateProfile.BoardWidth = reader.ReadInt32();
     generateProfile.BoardHeight = reader.ReadInt32();
     generateProfile.GeneratorStyle = (SolverMethod)reader.ReadInt32();
     generateProfile.IterativeGeneratorDepth = reader.ReadInt32();
     generateProfile.GeneratorCellIntersInteract = reader.ReadBoolean();
     generateProfile.GenerateConsiderMultipleLoops = reader.ReadBoolean();
     generateProfile.LineToCrossRatio = reader.ReadDouble();
     generateProfile.ErrorRatio = reader.ReadDouble();
 }
Example #3
0
 public ProfileDetailsMessage(Profile generateProfile)
     : base(MessageType.ProfileDetails, generateProfile)
 {
 }
Example #4
0
 public ProfileMessage(MessageType messageType, Profile generateProfile)
     : base(messageType)
 {
     this.generateProfile = generateProfile;
 }
Example #5
0
 public ProfileDetailsBroadcast(Profile generateProfile)
     : base(MessageType.ProfileDetailsBroadcast, generateProfile)
 {
 }