-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ac90a
commit 899418f
Showing
4 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZenovaLauncher | ||
{ | ||
class MinecraftVersion | ||
{ | ||
private string _name; | ||
private string _uuid; | ||
private bool _isBeta; | ||
|
||
public MinecraftVersion(string name, string uuid, bool isBeta) | ||
{ | ||
_name = name; | ||
_uuid = uuid; | ||
_isBeta = isBeta; | ||
} | ||
|
||
public string Name | ||
{ | ||
get { return _name + (_isBeta ? " (Beta)" : ""); } | ||
} | ||
} | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZenovaLauncher | ||
{ | ||
class Profile | ||
{ | ||
private MinecraftVersion _version; | ||
|
||
public Profile(string name, MinecraftVersion version) | ||
{ | ||
ProfileName = name; | ||
_version = version; | ||
} | ||
|
||
public string ProfileName { get; set; } | ||
|
||
public string VersionName | ||
{ | ||
get { return _version.Name; } | ||
} | ||
} | ||
|
||
class Profiles : ObservableCollection<Profile> | ||
{ | ||
public Profiles() | ||
{ | ||
Add(new Profile("Latest release", new MinecraftVersion("1.14.30.2", "uuid", false))); | ||
Add(new Profile("Latest beta", new MinecraftVersion("1.16.0.55", "uuid", true))); | ||
} | ||
} | ||
} |
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