mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 15:05:54 +00:00
2D Character and weapons
This commit is contained in:
parent
072f6d0ce6
commit
cc9c4e5aa1
37 changed files with 1115 additions and 91 deletions
34
Scripts/Weapons/IBullet.cs
Normal file
34
Scripts/Weapons/IBullet.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using Cirno.Scripts.Components;
|
||||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Weapons;
|
||||
|
||||
public interface IBullet
|
||||
{
|
||||
public float Speed { get; set; }
|
||||
public BulletOwner BulletOwner { get; }
|
||||
public float Damage { get; }
|
||||
public DamageType DamageType { get; }
|
||||
public BulletInfo BulletInfo { get; }
|
||||
|
||||
public bool IsGrazed { get; }
|
||||
|
||||
public bool IsFrozen { get; }
|
||||
public bool Enabled { get; }
|
||||
|
||||
public delegate void OnDestroyEventHandler();
|
||||
|
||||
public void Initialize(BulletInfo bulletInfo, GameManager gameManager);
|
||||
|
||||
public void Enable();
|
||||
public void Disable(bool hideSprite = true);
|
||||
public void Graze();
|
||||
public void RotateBullet(float degrees);
|
||||
public void RotateSpriteDegrees(float degrees);
|
||||
public void RotateSprite(float radians);
|
||||
public void FacePlayer();
|
||||
public void SetDirection(Vector2 direction);
|
||||
public bool CanHit(BulletOwner bulletOwner, BulletOwner targetGroup);
|
||||
public void RequestCollisionDestruction();
|
||||
public void Freeze();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue