Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resharper code cleanup pass of HearthCap.Core project
- Loading branch information
Showing
55 changed files
with
1,389 additions
and
1,115 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -8,4 +8,4 @@ public enum CaptureMethod | ||
BitBlt, | BitBlt, | ||
Log | Log | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,20 +1,20 @@ | |||
using System; | |||
|
|||
namespace HearthCap.Core.GameCapture | namespace HearthCap.Core.GameCapture | ||
{ | { | ||
using System; | |||
|
|||
public class EngineEvent | public class EngineEvent | ||
{ | { | ||
/// <summary> | /// <summary> | ||
/// Initializes a new instance of the <see cref="T:System.Object"/> class. | /// Initializes a new instance of the <see cref="T:System.Object" /> class. | ||
/// </summary> | /// </summary> | ||
public EngineEvent(string message) | public EngineEvent(string message) | ||
{ | { | ||
this.Message = message; | Message = message; | ||
this.Date = DateTime.Now; | Date = DateTime.Now; | ||
} | } | ||
|
|
||
public string Message { get; set; } | public string Message { get; set; } | ||
|
|
||
public DateTime Date { get; set; } | public DateTime Date { get; set; } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -7,4 +7,4 @@ public WindowMinimized() | ||
{ | { | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -7,4 +7,4 @@ public WindowNotFound() | ||
{ | { | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,11 @@ | |||
namespace HearthCap.Core.GameCapture | using System; | ||
{ | |||
using System; | |||
|
|
||
namespace HearthCap.Core.GameCapture | |||
{ | |||
public class EngineSwitchEventArgs : EventArgs | public class EngineSwitchEventArgs : EventArgs | ||
{ | { | ||
public bool? FullscreenSupport { get; set; } | public bool? FullscreenSupport { get; set; } | ||
|
|
||
public bool? BackgroundCaptureSupport { get; set; } | public bool? BackgroundCaptureSupport { get; set; } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -2,6 +2,5 @@ | ||
{ | { | ||
public class ResetCurrentGame | public class ResetCurrentGame | ||
{ | { | ||
|
|||
} | } | ||
} | } |
10 changes: 5 additions & 5 deletions
10
HearthCap.Core/GameCapture/HS/Events/ArenaDeckScreenshotTaken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,14 @@ | |||
namespace HearthCap.Core.GameCapture.HS.Events | using System.Drawing; | ||
{ | |||
using System.Drawing; | |||
|
|
||
namespace HearthCap.Core.GameCapture.HS.Events | |||
{ | |||
public class ArenaDeckScreenshotTaken | public class ArenaDeckScreenshotTaken | ||
{ | { | ||
public Bitmap Image { get; protected set; } | public Bitmap Image { get; protected set; } | ||
|
|
||
public ArenaDeckScreenshotTaken(Bitmap image) | public ArenaDeckScreenshotTaken(Bitmap image) | ||
{ | { | ||
this.Image = image; | Image = image; | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,12 @@ | |||
using HearthCap.Core.GameCapture.HS.Events; | |||
|
|||
namespace HearthCap.Core.GameCapture.HS | namespace HearthCap.Core.GameCapture.HS | ||
{ | { | ||
using HearthCap.Core.GameCapture.HS.Events; | |||
|
|||
public class ArenaDrafting : GameEvent | public class ArenaDrafting : GameEvent | ||
{ | { | ||
public ArenaDrafting() | public ArenaDrafting() | ||
: base("Arena: drafting cards") | : base("Arena: drafting cards") | ||
{ | { | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
HearthCap.Core/GameCapture/HS/Events/DeckScreenshotTaken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,14 @@ | |||
namespace HearthCap.Core.GameCapture.HS.Events | using System.Drawing; | ||
{ | |||
using System.Drawing; | |||
|
|
||
namespace HearthCap.Core.GameCapture.HS.Events | |||
{ | |||
public class DeckScreenshotTaken | public class DeckScreenshotTaken | ||
{ | { | ||
public Bitmap Image { get; protected set; } | public Bitmap Image { get; protected set; } | ||
|
|
||
public DeckScreenshotTaken(Bitmap image) | public DeckScreenshotTaken(Bitmap image) | ||
{ | { | ||
this.Image = image; | Image = image; | ||
} | } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1,17 @@ | |||
namespace HearthCap.Core.GameCapture.HS.Events | using System; | ||
{ | |||
using System; | |||
|
|
||
namespace HearthCap.Core.GameCapture.HS.Events | |||
{ | |||
public class GameEvent | public class GameEvent | ||
{ | { | ||
public GameEvent(string message) | public GameEvent(string message) | ||
{ | { | ||
this.Date = DateTime.Now; | Date = DateTime.Now; | ||
this.Message = message; | Message = message; | ||
} | } | ||
|
|||
public DateTime Date { get; set; } | public DateTime Date { get; set; } | ||
|
|
||
public string Message { get; set; } | public string Message { get; set; } | ||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.