Exemplo n.º 1
0
 public GenerateMessage(Profile generateProfile)
     : base(MessageType.GenerateRequest, generateProfile)
 {
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 public ProfileDetailsMessage(Profile generateProfile)
     : base(MessageType.ProfileDetails, generateProfile)
 {
 }
Exemplo n.º 4
0
 public ProfileMessage(MessageType messageType, Profile generateProfile)
     : base(messageType)
 {
     this.generateProfile = generateProfile;
 }
Exemplo n.º 5
0
 public ProfileDetailsBroadcast(Profile generateProfile)
     : base(MessageType.ProfileDetailsBroadcast, generateProfile)
 {
 }