Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -2,25 +2,21 @@ namespace Server.Ethics
|
|||
{
|
||||
public class PowerDefinition
|
||||
{
|
||||
private int m_Power;
|
||||
public int Power { get; }
|
||||
|
||||
private TextDefinition m_Name;
|
||||
private TextDefinition m_Phrase;
|
||||
private TextDefinition m_Description;
|
||||
public TextDefinition Name { get; }
|
||||
|
||||
public int Power => m_Power;
|
||||
public TextDefinition Phrase { get; }
|
||||
|
||||
public TextDefinition Name => m_Name;
|
||||
public TextDefinition Phrase => m_Phrase;
|
||||
public TextDefinition Description => m_Description;
|
||||
public TextDefinition Description { get; }
|
||||
|
||||
public PowerDefinition( int power, TextDefinition name, TextDefinition phrase, TextDefinition description )
|
||||
{
|
||||
m_Power = power;
|
||||
Power = power;
|
||||
|
||||
m_Name = name;
|
||||
m_Phrase = phrase;
|
||||
m_Description = description;
|
||||
Name = name;
|
||||
Phrase = phrase;
|
||||
Description = description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue