mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2024-11-28 16:58:56 +08:00
Cardinals IsHorizontal, IsVertical
This commit is contained in:
parent
7f1c1d8337
commit
3b681a0149
|
@ -57,9 +57,6 @@ namespace Strawberry
|
||||||
|
|
||||||
AssignmentLists.Add(type, list);
|
AssignmentLists.Add(type, list);
|
||||||
}
|
}
|
||||||
|
|
||||||
Calc.Log(scope => GetTrackedInterfacesInfo);
|
|
||||||
Calc.Log(scope => GetTrackedTypesInfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static public void GetTrackedInterfacesInfo(String buffer)
|
static public void GetTrackedInterfacesInfo(String buffer)
|
||||||
|
|
|
@ -47,6 +47,9 @@ namespace Strawberry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool IsHorizontal => this == .Right || this == .Left;
|
||||||
|
public bool IsVertical => this == .Down || this == .Up;
|
||||||
|
|
||||||
public Cardinals Opposite()
|
public Cardinals Opposite()
|
||||||
{
|
{
|
||||||
switch (this)
|
switch (this)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user