forked from andmer/simpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBehavior.cs
More file actions
34 lines (29 loc) · 773 Bytes
/
Behavior.cs
File metadata and controls
34 lines (29 loc) · 773 Bytes
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
32
33
34
using System;
using Styx;
namespace Simcraft
{
public class Behavior : Attribute
{
private readonly WoWClass _class;
private readonly WoWContext _context;
private readonly WoWSpec _spec;
public Behavior(WoWClass cl, WoWSpec sp, WoWContext cont)
{
_class = cl;
_spec = sp;
_context = cont;
}
public bool Match(WoWClass cl, WoWSpec sp, WoWContext cont)
{
return (cl == _class && cont == _context);
}
public override String ToString()
{
return _spec + " " + _class + " in " + _context;
}
/*public override bool Equals(object obj)
{
//return base.Equals(obj);
}*/
}
}