예제 #1
0
		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;
		}
예제 #2
0
		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);
		}