public void Init() { Compiler.Instance.VariableStorage.Clear(); level = new XLevel() { Id = "lvlTest", Subcomponents = new XObjectCollection() }; system = new XSystem { Id = "system" }; block = new XBlock() { Id = "blkBlock01", Bounds = new RectangleF(10, 10, 20, 20) }; numAnimation = new XNumAnimation() { Id = "anmNum01", Subcomponents = new XObjectCollection() }; boolTrigger = new XBoolTrigger(); numAnimation.Subcomponents.Add(boolTrigger); level.Subcomponents.Add(system); level.Subcomponents.Add(block); level.Subcomponents.Add(numAnimation); }
public bool isPlaying() { XSystem xs = _connection.System; xbmc_json_async.Player.XPlayerType xpt = xs.GetActivePlayers(); if (xpt == xbmc_json_async.Player.XPlayerType.Audio || xpt == xbmc_json_async.Player.XPlayerType.Video || xpt == xbmc_json_async.Player.XPlayerType.Picture) { return(true); } return(false); }