53 lines
1.0 KiB
C#
53 lines
1.0 KiB
C#
using ColdMint.scripts.projectile;
|
|
using ColdMint.scripts.weapon;
|
|
using Godot;
|
|
|
|
namespace ColdMint.scripts.pickable;
|
|
|
|
/// <summary>
|
|
/// <para>magic</para>
|
|
/// <para>法术</para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
///<para>For projectile weapons</para>
|
|
///<para>用于抛射体武器</para>
|
|
/// </remarks>
|
|
public partial class MagicPickAble : PickAbleTemplate, IMagic
|
|
{
|
|
private string? _projectilePath;
|
|
|
|
private PackedScene? _projectileScene;
|
|
public override void _Ready()
|
|
{
|
|
base._Ready();
|
|
if (_projectilePath != null)
|
|
{
|
|
_projectileScene = GD.Load<PackedScene>(_projectilePath);
|
|
}
|
|
}
|
|
|
|
public override int ItemType
|
|
{
|
|
get => Config.ItemType.Magic;
|
|
}
|
|
|
|
public PackedScene? GetProjectile()
|
|
{
|
|
return _projectileScene;
|
|
}
|
|
|
|
public void ModifyWeapon(ProjectileWeapon projectileWeapon)
|
|
{
|
|
|
|
}
|
|
|
|
public void RestoreWeapon(ProjectileWeapon projectileWeapon)
|
|
{
|
|
|
|
}
|
|
|
|
public void ModifyProjectile(Projectile projectile)
|
|
{
|
|
|
|
}
|
|
} |