public GenerateMessage(Profile generateProfile) : base(MessageType.GenerateRequest, generateProfile) { }
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(); }
public ProfileDetailsMessage(Profile generateProfile) : base(MessageType.ProfileDetails, generateProfile) { }
public ProfileMessage(MessageType messageType, Profile generateProfile) : base(messageType) { this.generateProfile = generateProfile; }
public ProfileDetailsBroadcast(Profile generateProfile) : base(MessageType.ProfileDetailsBroadcast, generateProfile) { }