Tracker Update
This commit is contained in:
		
							parent
							
								
									0817dbea29
								
							
						
					
					
						commit
						c410f078b0
					
				
							
								
								
									
										57
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,57 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    // Use IntelliSense to learn about possible attributes.
 | 
				
			||||||
 | 
					    // Hover to view descriptions of existing attributes.
 | 
				
			||||||
 | 
					    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 | 
				
			||||||
 | 
					    "version": "0.2.0",
 | 
				
			||||||
 | 
					    "configurations": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "name": ".NET Core Launch (console)",
 | 
				
			||||||
 | 
					            "type": "coreclr",
 | 
				
			||||||
 | 
					            "request": "launch",
 | 
				
			||||||
 | 
					            "preLaunchTask": "build",
 | 
				
			||||||
 | 
					            "program": "${workspaceFolder}/bin/Debug/<insert-target-framework-here>/<insert-project-name-here>.dll",
 | 
				
			||||||
 | 
					            "args": [],
 | 
				
			||||||
 | 
					            "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					            "console": "internalConsole",
 | 
				
			||||||
 | 
					            "stopAtEntry": false,
 | 
				
			||||||
 | 
					            "internalConsoleOptions": "openOnSessionStart"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "name": ".NET Core Launch (web)",
 | 
				
			||||||
 | 
					            "type": "coreclr",
 | 
				
			||||||
 | 
					            "request": "launch",
 | 
				
			||||||
 | 
					            "preLaunchTask": "build",
 | 
				
			||||||
 | 
					            "program": "${workspaceFolder}/bin/Debug/<insert-target-framework-here>/<insert-project-name-here>.dll",
 | 
				
			||||||
 | 
					            "args": [],
 | 
				
			||||||
 | 
					            "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					            "stopAtEntry": false,
 | 
				
			||||||
 | 
					            "internalConsoleOptions": "openOnSessionStart",
 | 
				
			||||||
 | 
					            "launchBrowser": {
 | 
				
			||||||
 | 
					                "enabled": true,
 | 
				
			||||||
 | 
					                "args": "${auto-detect-url}",
 | 
				
			||||||
 | 
					                "windows": {
 | 
				
			||||||
 | 
					                    "command": "cmd.exe",
 | 
				
			||||||
 | 
					                    "args": "/C start ${auto-detect-url}"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "osx": {
 | 
				
			||||||
 | 
					                    "command": "open"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                "linux": {
 | 
				
			||||||
 | 
					                    "command": "xdg-open"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "env": {
 | 
				
			||||||
 | 
					                "ASPNETCORE_ENVIRONMENT": "Development"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "sourceFileMap": {
 | 
				
			||||||
 | 
					                "/Views": "${workspaceFolder}/Views"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "name": ".NET Core Attach",
 | 
				
			||||||
 | 
					            "type": "coreclr",
 | 
				
			||||||
 | 
					            "request": "attach",
 | 
				
			||||||
 | 
					            "processId": "${command:pickProcess}"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -29,10 +29,10 @@ namespace OWTrack
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    class Tracker
 | 
					    class Tracker
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public int wins, losses, startSR, newSR = 0;
 | 
					        public int wins, losses, startSR, newSR, totalMatches = 0;
 | 
				
			||||||
        public string gamePath;       
 | 
					        public string gamePath;       
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        public void Track() { }
 | 
					        public void Track() { }//Deserailize here
 | 
				
			||||||
        public void reset() { wins = 0; losses = 0; startSR = 0; newSR = 0; gamePath = null; }
 | 
					        public void reset() { wins = 0; losses = 0; startSR = 0; newSR = 0; gamePath = null; }
 | 
				
			||||||
        public void addWin() { wins++; }
 | 
					        public void addWin() { wins++; }
 | 
				
			||||||
        public void addLoss() { losses++; }
 | 
					        public void addLoss() { losses++; }
 | 
				
			||||||
@ -40,6 +40,7 @@ namespace OWTrack
 | 
				
			|||||||
        public void rediceLoss() { losses--; }
 | 
					        public void rediceLoss() { losses--; }
 | 
				
			||||||
        public int GetWins() { return wins; }
 | 
					        public int GetWins() { return wins; }
 | 
				
			||||||
        public int GetLosses() { return losses; }
 | 
					        public int GetLosses() { return losses; }
 | 
				
			||||||
 | 
					        public int GetTotalMatches() { return wins + losses; }
 | 
				
			||||||
        public void setNewSR(int SR) { newSR = SR; }
 | 
					        public void setNewSR(int SR) { newSR = SR; }
 | 
				
			||||||
        public int srDiff() { return newSR - startSR; }
 | 
					        public int srDiff() { return newSR - startSR; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user