Framing Basics
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public class Fire : IElement
|
||||
{
|
||||
public int Damage { get; set; }
|
||||
|
||||
public Fire(int damage)
|
||||
{
|
||||
Damage = damage;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public class FireBall : ISpell
|
||||
{
|
||||
public SpellType Type => SpellType.Overt;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public interface IElement
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public interface IOvertEffect
|
||||
{
|
||||
void ApplyEffect();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public interface ISpell
|
||||
{
|
||||
public SpellType Type { get; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public interface ISubtleEffect
|
||||
{
|
||||
void ApplyEffect();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public enum SpellType
|
||||
{
|
||||
Subtle,
|
||||
Overt
|
||||
}
|
||||
Reference in New Issue
Block a user