Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -23,12 +23,12 @@ namespace Server.Multis
}
[CommandProperty(AccessLevel.GameMaster)]
public int MultiID{ get; set; }
public int MultiID { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public Point3D Offset{ get; set; }
public Point3D Offset { get; set; }
public abstract BaseBoat Boat{ get; }
public abstract BaseBoat Boat { get; }
public override void Serialize(IGenericWriter writer)
{
@ -49,12 +49,12 @@ namespace Server.Multis
switch (version)
{
case 0:
{
MultiID = reader.ReadInt();
Offset = reader.ReadPoint3D();
{
MultiID = reader.ReadInt();
Offset = reader.ReadPoint3D();
break;
}
break;
}
}
if (Weight == 0.0)
@ -144,7 +144,7 @@ namespace Server.Multis
private class InternalTarget : MultiTarget
{
private BaseBoatDeed m_Deed;
private readonly BaseBoatDeed m_Deed;
public InternalTarget(BaseBoatDeed deed) : base(deed.MultiID, deed.Offset) => m_Deed = deed;