Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -24,93 +24,91 @@ using Server.Mobiles;
namespace Server.Mobiles
{
public interface IMount
{
Mobile Rider{ get; set; }
void OnRiderDamaged( int amount, Mobile from, bool willKill );
}
public interface IMount
{
Mobile Rider{ get; set; }
void OnRiderDamaged(int amount, Mobile from, bool willKill);
}
public interface IMountItem
{
IMount Mount{ get; }
}
public interface IMountItem
{
IMount Mount{ get; }
}
}
namespace Server
{
public interface IVendor
{
bool OnBuyItems( Mobile from, List<BuyItemResponse> list );
bool OnSellItems( Mobile from, List<SellItemResponse> list );
public interface IVendor
{
DateTime LastRestock{ get; set; }
TimeSpan RestockDelay{ get; }
bool OnBuyItems(Mobile from, List<BuyItemResponse> list);
bool OnSellItems(Mobile from, List<SellItemResponse> list);
void Restock();
}
DateTime LastRestock{ get; set; }
TimeSpan RestockDelay{ get; }
void Restock();
}
public interface IPoint2D
{
int X{ get; }
int Y{ get; }
}
public interface IPoint2D
{
int X{ get; }
int Y{ get; }
}
public interface IPoint3D : IPoint2D
{
int Z{ get; }
}
public interface IPoint3D : IPoint2D
{
int Z{ get; }
}
public interface ICarvable
{
void Carve(Mobile from, Item item);
}
public interface ICarvable
{
void Carve( Mobile from, Item item );
}
public interface IWeapon
{
int MaxRange{ get; }
void OnBeforeSwing(Mobile attacker, Mobile defender);
TimeSpan OnSwing(Mobile attacker, Mobile defender);
void GetStatusDamage(Mobile from, out int min, out int max);
}
public interface IWeapon
{
int MaxRange{ get; }
void OnBeforeSwing( Mobile attacker, Mobile defender );
TimeSpan OnSwing( Mobile attacker, Mobile defender );
void GetStatusDamage( Mobile from, out int min, out int max );
}
public interface IHued
{
int HuedItemID{ get; }
}
public interface IHued
{
int HuedItemID{ get; }
}
public interface ISpell
{
bool IsCasting{ get; }
void OnCasterHurt();
void OnCasterKilled();
void OnConnectionChanged();
bool OnCasterMoving(Direction d);
bool OnCasterEquipping(Item item);
bool OnCasterUsingObject(object o);
bool OnCastInTown(Region r);
}
public interface ISpell
{
bool IsCasting{ get; }
void OnCasterHurt();
void OnCasterKilled();
void OnConnectionChanged();
bool OnCasterMoving( Direction d );
bool OnCasterEquiping( Item item );
bool OnCasterUsingObject( object o );
bool OnCastInTown( Region r );
}
public interface IParty
{
void OnStamChanged(Mobile m);
void OnManaChanged(Mobile m);
void OnStatsQuery(Mobile beholder, Mobile beheld);
}
public interface IParty
{
void OnStamChanged( Mobile m );
void OnManaChanged( Mobile m );
void OnStatsQuery( Mobile beholder, Mobile beheld );
}
public interface ISpawner
{
bool UnlinkOnTaming{ get; }
Point3D HomeLocation{ get; }
int HomeRange{ get; }
Region Region{ get; }
public interface ISpawner
{
bool UnlinkOnTaming { get; }
Point3D HomeLocation { get; }
int HomeRange { get; }
Region Region { get; }
void Remove(ISpawnable spawn);
}
void Remove(ISpawnable spawn);
}
public interface ISpawnable : IEntity
{
void OnBeforeSpawn(Point3D location, Map map);
void OnAfterSpawn();
ISpawner Spawner { get; set; }
}
}
public interface ISpawnable : IEntity
{
ISpawner Spawner{ get; set; }
void OnBeforeSpawn(Point3D location, Map map);
void OnAfterSpawn();
}
}