Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -28,29 +28,11 @@ namespace Server.Menus.ItemLists
|
|||
private int m_ItemID;
|
||||
private int m_Hue;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Name;
|
||||
}
|
||||
}
|
||||
public string Name => m_Name;
|
||||
|
||||
public int ItemID
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_ItemID;
|
||||
}
|
||||
}
|
||||
public int ItemID => m_ItemID;
|
||||
|
||||
public int Hue
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Hue;
|
||||
}
|
||||
}
|
||||
public int Hue => m_Hue;
|
||||
|
||||
public ItemListEntry( string name, int itemID ) : this( name, itemID, 0 )
|
||||
{
|
||||
|
|
@ -72,40 +54,16 @@ namespace Server.Menus.ItemLists
|
|||
private int m_Serial;
|
||||
private static int m_NextSerial;
|
||||
|
||||
int IMenu.Serial
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Serial;
|
||||
}
|
||||
}
|
||||
int IMenu.Serial => m_Serial;
|
||||
|
||||
int IMenu.EntryLength
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Entries.Length;
|
||||
}
|
||||
}
|
||||
int IMenu.EntryLength => m_Entries.Length;
|
||||
|
||||
public string Question
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Question;
|
||||
}
|
||||
}
|
||||
public string Question => m_Question;
|
||||
|
||||
public ItemListEntry[] Entries
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Entries;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Entries = value;
|
||||
}
|
||||
get => m_Entries;
|
||||
set => m_Entries = value;
|
||||
}
|
||||
|
||||
public ItemListMenu( string question, ItemListEntry[] entries )
|
||||
|
|
|
|||
|
|
@ -30,41 +30,17 @@ namespace Server.Menus.Questions
|
|||
private int m_Serial;
|
||||
private static int m_NextSerial;
|
||||
|
||||
int IMenu.Serial
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Serial;
|
||||
}
|
||||
}
|
||||
int IMenu.Serial => m_Serial;
|
||||
|
||||
int IMenu.EntryLength
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Answers.Length;
|
||||
}
|
||||
}
|
||||
int IMenu.EntryLength => m_Answers.Length;
|
||||
|
||||
public string Question
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Question;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_Question = value;
|
||||
}
|
||||
get => m_Question;
|
||||
set => m_Question = value;
|
||||
}
|
||||
|
||||
public string[] Answers
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_Answers;
|
||||
}
|
||||
}
|
||||
public string[] Answers => m_Answers;
|
||||
|
||||
public QuestionMenu( string question, string[] answers )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue