From 03fb09aa30cff6d3595d75ed468a43b53fc9f603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Fri, 5 Apr 2024 17:31:06 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20la=20classe=20Player=20pou?= =?UTF-8?q?r=20les=20joueurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Trek-12/Models/Player.cs | 21 +++++++++++++++++++++ source/Trek-12/Models/Profile.cs | 16 ---------------- 2 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 source/Trek-12/Models/Player.cs delete mode 100644 source/Trek-12/Models/Profile.cs diff --git a/source/Trek-12/Models/Player.cs b/source/Trek-12/Models/Player.cs new file mode 100644 index 0000000..1f5dbf6 --- /dev/null +++ b/source/Trek-12/Models/Player.cs @@ -0,0 +1,21 @@ +namespace Models; + +public class Player +{ + public string Pseudo { get; private set; } + + public string ProfilePicture { get; private set; } + + public Player() + { + Pseudo = "Player"; + ProfilePicture = "DefaultProfilePicture"; + } + + public Player(string pseudo, string profilePicture = "DefaultProfilePicture") + { + Pseudo = pseudo; + ProfilePicture = profilePicture; + } + +} \ No newline at end of file diff --git a/source/Trek-12/Models/Profile.cs b/source/Trek-12/Models/Profile.cs deleted file mode 100644 index 910ce64..0000000 --- a/source/Trek-12/Models/Profile.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Models; - -public class Player -{ - public string Pseudo { get; private set; } - private string _pseudo; - - public string ProfilePicture { get; private set; } - private string _profilePicture; - - public Player(string pseudo) - { - Pseudo = pseudo; - } - -} \ No newline at end of file