void cPrompterTemplate_ParseDone(userspace.Template cTemplate) { try { _cPrompterTemplate.TextSplit(); } catch (Exception ex) { (new Logger()).WriteError(ex); throw; } }
public List<int> BaetylusEffectStop(userspace.Helper.EffectInfo[] aEffects) { userspace.Helper cHelper = new userspace.Helper(); List<int> aHashes = new List<int>(); List<int> aRetVal = new List<int>(); try { foreach (userspace.Helper.EffectInfo cEI in aEffects) aHashes.Add(cEI.nHashCode); aRetVal = cHelper.BaetylusEffectStop(aHashes); } catch (Exception ex) { (new Logger()).WriteError(ex); } return aRetVal; }
protected Item ItemGet(userspace.Effect cEffect) { lock (_aItems) return _aItems.FirstOrDefault(o => o.cEffect == cEffect); }
public Item(ushort nOrder, userspace.Effect cEffect) { this.nOrder = nOrder; this.cEffect = cEffect; }
public void EffectRemove(userspace.Effect cEffect) { Item cItem; if (null == _cEffect && null != (cItem = _aItems.FirstOrDefault(o => o.cEffect == cEffect))) // манипуляции с эффектами безопасны только до create lock(_aItems) _aItems.Remove(cItem); }
public void EffectAdd(userspace.Effect cEffect, float nSpeed) { if (null == _cEffect) Create(); cEffect.Create(); shared.Effect cEffectRemote = RemoteEffectGet(cEffect); ((shared.Roll)_cEffect).EffectAdd(cEffectRemote, nSpeed); Item cItem = ItemGet(cEffect); if (null == cItem) { cItem = new Item(ushort.MaxValue, cEffect); lock (_aItems) _aItems.AddLast(cItem); } cItem.cEffectShared = cEffectRemote; }
public void EffectAdd(userspace.Effect cEffect) { EffectAdd(cEffect, float.MaxValue); }
public void Skip(userspace.Effect cEffect) { (new Logger()).WriteDebug("skip: [e:" + (null == cEffect ? "null" : cEffect.nDuration.ToString()) + "]"); Item cItem = null; shared.Effect cEffectShared = null; if (null != cEffect) { lock(_aItems) if (null == (cItem = _aItems.FirstOrDefault(o => o.cEffect == cEffect))) throw new Exception("эффект для скипа не найден!"); cEffectShared = cItem.cEffectShared; } ((shared.Playlist)_cEffect).Skip(bSkipLastEffect, nSkipTransitionDuration, cEffectShared); //UNDONE }
public void EffectAdd(userspace.Effect cEffect, ushort nTransDur) { if (null == _cEffect) Create(); cEffect.Create(); Item cItem = new Item(ushort.MaxValue, cEffect); cItem.cEffectShared = RemoteEffectGet(cEffect); lock (_aItems) _aItems.AddLast(cItem); ((shared.Playlist)_cEffect).EffectAdd(cItem.cEffectShared, nTransDur); }
public void EffectAdd(userspace.Effect cEffect) { EffectAdd(cEffect, 0); }