Commit ad3258a0 authored by mercury233's avatar mercury233

add Card.HasLinkMarker

parent 917f7f5d
......@@ -23,7 +23,7 @@ namespace WindBot.Game
public int Defense { get; private set; }
public int LScale { get; private set; }
public int RScale { get; private set; }
public int Link { get; private set; }
public int LinkCount { get; private set; }
public int LinkMarker { get; private set; }
public int BaseAttack { get; private set; }
public int BaseDefense { get; private set; }
......@@ -136,11 +136,21 @@ namespace WindBot.Game
RScale = packet.ReadInt32();
if ((flag & (int)Query.Link) != 0)
{
Link = packet.ReadInt32();
LinkCount = packet.ReadInt32();
LinkMarker = packet.ReadInt32();
}
}
public bool HasLinkMarker(int dir)
{
return ((LinkMarker & dir) != 0);
}
public bool HasLinkMarker(LinkMarker dir)
{
return ((LinkMarker & (int)dir) != 0);
}
public bool HasType(CardType type)
{
return ((Type & (int)type) != 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment