public AnimatedItemEffectView(AnimatedItemEffect effect) : base(effect) { m_Animated = true; IResourceProvider provider = ServiceRegistry.GetService<IResourceProvider>(); m_AnimData = provider.GetResource<EffectData>(Effect.ItemID); }
public MovingEffectView(MovingEffect effect) : base(effect) { m_Animated = TileData.ItemData[Effect.ItemID & FileManager.ItemIDMask].IsAnimation; if (m_Animated) { m_AnimData = Provider.GetResource<EffectData>(Effect.ItemID); m_Animated = m_AnimData.FrameCount > 0; } }
public MovingEffectView(MovingEffect effect) : base(effect) { m_Animated = TileData.ItemData[Effect.ItemID & FileManager.ItemIDMask].IsAnimation; if (m_Animated) { IResourceProvider provider = ServiceRegistry.GetService<IResourceProvider>(); m_AnimData = provider.GetResource<EffectData>(Effect.ItemID); m_Animated = m_AnimData.FrameCount > 0; } }
public AnimatedItemEffectView(AnimatedItemEffect effect) : base(effect) { m_Animated = true; m_AnimData = Provider.GetResource<EffectData>(Effect.ItemID); }