Added some summaries

This commit is contained in:
Stedd 2024-10-15 23:44:33 +02:00
parent 6a49fa1812
commit ea2119913a
2 changed files with 14 additions and 1 deletions

View File

@ -1,10 +1,17 @@
using UnityEngine;
namespace GameDev.CoreSystems namespace GameDev.CoreSystems
{ {
public interface IDamageable public interface IDamageable
{ {
#region Methods #region Methods
public void ModifyHealth(int healthChange); /// <summary>
/// Modify the health of the damageable
/// </summary>
/// <param name="healthChange">Amount of health change</param>
/// <param name="source">Source GameObject, used to modify stats of the source. Total kills, etc.</param>
public void ModifyHealth(int healthChange, GameObject source);
#endregion #endregion

View File

@ -2,7 +2,13 @@ namespace GameDev.CoreSystems
{ {
public interface IWeapon public interface IWeapon
{ {
/// <summary>
/// [s] Fire rate of the weapon
/// </summary>
public float FireRate { get; set; } public float FireRate { get; set; }
/// <summary>
/// Weapon damage
/// </summary>
public int Damage { get; set; } public int Damage { get; set; }
} }
} }