diff --git a/Sources/Model/Bateau.cs b/Sources/Model/Bateau.cs new file mode 100644 index 0000000..32d836d --- /dev/null +++ b/Sources/Model/Bateau.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Bateau + { + public string Nom { get; set; } + public string NomRomanise { get; set; } + public string Affiliation { get; set; } + public int PremierChap { get; set; } + public int PremierEp { get; set; } + public string Description { get; set; } + public string Caracteristique { get; set; } + + public Bateau(string nom, string nomRomanise, string affiliation, int premierChap, int premierEp, string description, string caracteristique) + { + Nom = nom; + NomRomanise = nomRomanise; + Affiliation = affiliation; + PremierChap = premierChap; + PremierEp = premierEp; + Description = description; + Caracteristique = caracteristique; + } + } +} diff --git a/Sources/Model/Bestiaire.cs b/Sources/Model/Bestiaire.cs new file mode 100644 index 0000000..9a000f9 --- /dev/null +++ b/Sources/Model/Bestiaire.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Bestiaire + { + public string Nom { get; set; } + public string Origine { get; set; } + public string Description { get; set; } + public string Caracteristique { get; set; } + + public Bestiaire(string nom, string origine, string description, string caracteristique) + { + Nom = nom; + Origine = origine; + Description = description; + Caracteristique = caracteristique; + } + } +} diff --git a/Sources/Model/Equipage.cs b/Sources/Model/Equipage.cs new file mode 100644 index 0000000..3764307 --- /dev/null +++ b/Sources/Model/Equipage.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Equipage + { + public string Nom { get; set; } + public string NomRomanise { get; set; } + public Personnage Capitaine { get; set; } + public string Region { get; set; } + public int PremierChap { get; set; } + public int PremierEp { get; set; } + public bool Statut { get; set; } + public string Description { get; set; } + public Personnage Membre { get; set; } + public Personnage Allie { get; set; } + + public Equipage(string nom, string nomRomanise, Personnage capitaine, string region, int premierChap, int premierEp, bool statut, string description, Personnage membre, Personnage allie) + { + Nom = nom; + NomRomanise = nomRomanise; + Capitaine = capitaine; + Region = region; + PremierChap = premierChap; + PremierEp = premierEp; + Statut = statut; + Description = description; + Membre = membre; + Allie = allie; + } + } +} diff --git a/Sources/Model/FruitDuDemon.cs b/Sources/Model/FruitDuDemon.cs new file mode 100644 index 0000000..529fd4d --- /dev/null +++ b/Sources/Model/FruitDuDemon.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class FruitDuDemon + { + public string Nom { get; set; } + public string NomRomanise { get; set; } + public string Type { get; set; } + public int PremierChap { get; set; } + public int PremierEp { get; set; } + public string Description { get; set; } + public string Forces { get; set; } + public string Faiblesses { get; set; } + public Personnage Utilisateur { get; set; } + + public FruitDuDemon(string nom, string nomRomanise, string type, int premierChap, int premierEp, string description, string forces, string faiblesses, Personnage utilisateur) + { + Nom = nom; + NomRomanise = nomRomanise; + Type = type; + PremierChap = premierChap; + PremierEp = premierEp; + Description = description; + Forces = forces; + Faiblesses = faiblesses; + Utilisateur = utilisateur; + } + } +} diff --git a/Sources/Model/Ile.cs b/Sources/Model/Ile.cs new file mode 100644 index 0000000..aee2bf8 --- /dev/null +++ b/Sources/Model/Ile.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Ile + { + public string Nom { get; set; } + public string NomRomanise { get; set; } + public string Region { get; set; } + public int PremierChap { get; set; } + public int PremierEp { get; set; } + public string Description { get; set; } + public string Geographie { get; set; } + + public Ile(string nom, string nomRomanise, string region, int premierChap, int premierEp, string description, string geographie) + { + Nom = nom; + NomRomanise = nomRomanise; + Region = region; + PremierChap = premierChap; + PremierEp = premierEp; + Description = description; + Geographie = geographie; + } + } +} diff --git a/Sources/Model/Model.csproj b/Sources/Model/Model.csproj new file mode 100644 index 0000000..4658cbf --- /dev/null +++ b/Sources/Model/Model.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/Sources/Model/Personnage.cs b/Sources/Model/Personnage.cs new file mode 100644 index 0000000..7a32f8e --- /dev/null +++ b/Sources/Model/Personnage.cs @@ -0,0 +1,31 @@ +namespace Model +{ + public class Personnage + { + public string Nom { get; set; } + public string Epithete { get; set; } + public int Age { get; set; } + public float Taille { get; set; } + public FruitDuDemon Fruit { get; set; } + public string Origine { get; set; } + public string Equipage { get; set; } + public string Biographie { get; set; } + public string Citation { get; set; } + + + + public Personnage(string nom, string epithete, int age, float taille, FruitDuDemon fruit, string origine, string equipage, string biographie, string citation) + { + Nom = nom; + Epithete = epithete; + Age = age; + Taille = taille; + Fruit = fruit; + Origine = origine; + Equipage = equipage; + Biographie = biographie; + Citation = citation; + + } + } +} \ No newline at end of file diff --git a/Sources/Ohara.sln b/Sources/Ohara.sln index 52e5311..dd771c9 100644 --- a/Sources/Ohara.sln +++ b/Sources/Ohara.sln @@ -5,6 +5,10 @@ VisualStudioVersion = 17.0.31611.283 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ohara", "Ohara\Ohara.csproj", "{EEC24A76-0EB3-4C67-A71B-7FF823713645}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{A0307D66-E621-4BC1-A239-87C9021E7CFD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestConsole", "TestConsole\TestConsole.csproj", "{82A1ED67-9A29-4F12-94CD-2DC8221DE374}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,6 +21,14 @@ Global {EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.ActiveCfg = Release|Any CPU {EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.Build.0 = Release|Any CPU {EEC24A76-0EB3-4C67-A71B-7FF823713645}.Release|Any CPU.Deploy.0 = Release|Any CPU + {A0307D66-E621-4BC1-A239-87C9021E7CFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A0307D66-E621-4BC1-A239-87C9021E7CFD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A0307D66-E621-4BC1-A239-87C9021E7CFD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A0307D66-E621-4BC1-A239-87C9021E7CFD}.Release|Any CPU.Build.0 = Release|Any CPU + {82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Debug|Any CPU.Build.0 = Debug|Any CPU + {82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Release|Any CPU.ActiveCfg = Release|Any CPU + {82A1ED67-9A29-4F12-94CD-2DC8221DE374}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Sources/TestConsole/Program.cs b/Sources/TestConsole/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /dev/null +++ b/Sources/TestConsole/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/Sources/TestConsole/TestConsole.csproj b/Sources/TestConsole/TestConsole.csproj new file mode 100644 index 0000000..b073a98 --- /dev/null +++ b/Sources/TestConsole/TestConsole.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + +