File size: 631 Bytes
ce81a16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace Quantum
{
	public unsafe partial struct EffectAreaBehavior
	{
		public void Initialize(byte level)
		{
			switch (Field)
			{
				case DAMAGE: _Damage.Initialize(level); break;

				case BUFF:   break;

				default:
					throw new System.NotImplementedException();
			}
		}

		public void ProcessEffect(Frame frame, EntityRef entity, EntityRef target, byte level)
		{
			switch (Field)
			{
				case DAMAGE: _Damage.ProcessEffect(frame, entity, target);      break;
				case BUFF:   _Buff.ProcessEffect(frame, entity, target, level); break;

				default:
					throw new System.NotImplementedException();
			}
		}
	}
}