[add] Added ElementInterface.

This commit is contained in:
falsycat 2019-10-05 00:00:00 +00:00
parent 9c5fb1af8c
commit 84b0033790

View File

@ -0,0 +1,26 @@
/// License: MIT
module sjplayer.ElementInterface;
import gl4d;
///
interface ElementInterface {
public:
///
static struct DamageCalculationResult {
/// An amount of the damage. (0~1)
float damage;
/// A nearness of the point. (0~1)
float nearness;
}
///
DamageCalculationResult CalculateDamage(vec2 p1, vec2 p2) const;
}
///
interface ElementDrawerInterface {
public:
///
void Draw();
}