Created
March 3, 2019 11:32
-
-
Save HolyMonkey/aa93229e371f3d3b39af777e76a0ecaf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace IMJunior | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
} | |
static Player GetPlayer() | |
{ | |
return new Player() | |
{ | |
Bag = new Bag() | |
{ | |
Items = new Item[] | |
{ | |
new Item() | |
{ | |
Props = new Propertie[] | |
{ | |
new Propertie() | |
{ | |
Name = "Защита", | |
Value = "Высокая" | |
}, | |
new Propertie() | |
{ | |
Name = "Дамский спрос", | |
Value = "Не очень" | |
}, | |
new Propertie() | |
{ | |
Name = "Защита от карликов", | |
Value = "Веривандерфул" | |
} | |
}, | |
Prices = new Price[] | |
{ | |
new Price() | |
{ | |
Value = 100, | |
Type = MoneyType.JeewJeetsu | |
}, | |
new Price() | |
{ | |
Value = 1000, | |
Type = MoneyType.Gold | |
}, | |
} | |
}, | |
new Item() | |
{ | |
Props = new Propertie[] | |
{ | |
new Propertie() | |
{ | |
Name = "Атака", | |
Value = "Присутствует" | |
}, | |
new Propertie() | |
{ | |
Name = "Защита от нежелательной беременности", | |
Value = "Да" | |
} | |
}, | |
Prices = new Price[] | |
{ | |
new Price() | |
{ | |
Value = 100, | |
Type = MoneyType.Diamond | |
}, | |
new Price() | |
{ | |
Value = 1000, | |
Type = MoneyType.OrcsRedWood | |
}, | |
} | |
} | |
, new Item() | |
{ | |
Props = new Propertie[] | |
{ | |
new Propertie() | |
{ | |
Name = "Ткань", | |
Value = "Велюр" | |
}, | |
new Propertie() | |
{ | |
Name = "Заточка", | |
Value = "Под ребро" | |
} | |
}, | |
Prices = new Price[] | |
{ | |
new Price() | |
{ | |
Value = 100, | |
Type = MoneyType.Diamond | |
}, | |
new Price() | |
{ | |
Value = 1500, | |
Type = MoneyType.Gold | |
}, | |
} | |
} | |
,new Item() | |
{ | |
Props = new Propertie[] | |
{ | |
new Propertie() | |
{ | |
Name = "Уважение королей", | |
Value = "15" | |
} | |
}, | |
Prices = new Price[] | |
{ | |
new Price() | |
{ | |
Value = 100, | |
Type = MoneyType.JeewJeetsu | |
}, | |
new Price() | |
{ | |
Value = 1000, | |
Type = MoneyType.Gold | |
}, | |
new Price() | |
{ | |
Value = 100, | |
Type = MoneyType.Diamond | |
}, | |
} | |
} | |
} | |
} | |
}; | |
} | |
} | |
public class Player | |
{ | |
public Bag Bag; | |
} | |
public class Bag | |
{ | |
public Item[] Items; | |
} | |
public class Item | |
{ | |
public Propertie[] Props; | |
public Price[] Prices; | |
} | |
public class Propertie | |
{ | |
public string Name; | |
public string Value; | |
} | |
public class Price | |
{ | |
public int Value; | |
public MoneyType Type; | |
} | |
public enum MoneyType | |
{ | |
Gold, | |
OrcsRedWood, | |
Diamond, | |
JeewJeetsu | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment