/// <summary> /// /// </summary> /// <param name="image"></param> /// <param name="Name"></param> /// <param name="OverridePlayerSprite">Replace sprite of player with Weaopn.image</param> /// <param name="WeaponLocation">Location of weapon sprite(Relative to Player)</param> /// <param name="ProjectioleLocation">Location that projectiles will be lauched from(Relative to Player)</param> public Weapon(Image image, string Name, bool OverridePlayerSprite, Point_Socket WeaponLocation, Point_Socket ProjectileLocation, float ScaleX, float ScaleY) { this.ScaleX = ScaleX; this.ScaleY = ScaleY; this.Name = Name; this.image = image; this.OverridePlayerSprite = OverridePlayerSprite; this.WeaponLocation = WeaponLocation; this.ProjectileLocation = ProjectileLocation; }
/// <summary> /// /// </summary> /// <param name="ClipSize">Amount of ammo per clip(-1 for infinite)</param> /// <param name="MaxAmmo">Amount of ammo per clip(-1 for infinite)</param> public Weapon_Moveable(int ClipSize, int MaxAmmo, Image image, string Name, bool OverridePlayerSprite, Point_Socket WeaponLocation, Point_Socket ProjectioleLocation, float ScaleX, float ScaleY) : base(image, Name, OverridePlayerSprite, WeaponLocation, ProjectioleLocation, ScaleX, ScaleY) { this.ClipSize = ClipSize; this.MaxAmmo = MaxAmmo; }