Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -54,7 +54,7 @@ namespace Server.Engines.Quests.Collector
typeof( Collector.MakeRoomObjective )
};
public override Type[] TypeReferenceTable{ get{ return m_TypeReferenceTable; } }
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
public override object Name
{
@ -91,10 +91,10 @@ namespace Server.Engines.Quests.Collector
}
}
public override TimeSpan RestartDelay{ get{ return TimeSpan.Zero; } }
public override TimeSpan RestartDelay => TimeSpan.Zero;
public override bool IsTutorial => false;
public override int Picture{ get{ return 0x15A9; } }
public override int Picture => 0x15A9;
public CollectorQuest( PlayerMobile from ) : base( from )
{

View file

@ -90,11 +90,11 @@ namespace Server.Engines.Quests.Collector
private int m_X;
private int m_Y;
public int Figurine { get { return m_Figurine; } }
public Type Type { get { return m_Type; } }
public int Figurine => m_Figurine;
public Type Type => m_Type;
public int Name { get { return m_Figurine < 0x4000 ? 1020000 + m_Figurine : 1078872 + m_Figurine; } }
public int X { get { return m_X; } }
public int Y { get { return m_Y; } }
public int X => m_X;
public int Y => m_Y;
public ImageTypeInfo( int figurine, Type type, int x, int y )
{
@ -104,4 +104,4 @@ namespace Server.Engines.Quests.Collector
m_Y = y;
}
}
}
}

View file

@ -120,7 +120,7 @@ namespace Server.Engines.Quests.Collector
set { m_StatueName = value; InvalidateProperties(); }
}
public override bool ForceShowProperties { get { return ObjectPropertyList.Enabled; } }
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
[Constructible]
public Obsidian() : base( 0x1EA7 )
@ -261,4 +261,4 @@ namespace Server.Engines.Quests.Collector
m_StatueName = Utility.Intern( reader.ReadString() );
}
}
}
}

View file

@ -15,7 +15,7 @@ namespace Server.Engines.Quests.Collector
}
}
public override int MaxProgress{ get{ return 6; } }
public override int MaxProgress => 6;
public FishPearlsObjective()
{
@ -530,4 +530,4 @@ namespace Server.Engines.Quests.Collector
{
}
}
}
}