Add ModelAnimation.IsVisible property.

This commit is contained in:
Paul Chote
2017-12-05 17:34:46 +00:00
committed by reaperrr
parent 041431d966
commit 506b677527
2 changed files with 11 additions and 3 deletions

View File

@@ -32,5 +32,13 @@ namespace OpenRA.Graphics
FrameFunc = frame;
ShowShadow = showshadow;
}
public bool IsVisible
{
get
{
return DisableFunc == null || !DisableFunc();
}
}
}
}