EffectSystem::EffectSystem(World* _world) : Base(ComponentFilter().Requires<EffectComponent>(), _world) { m_currentTime = 0.f; m_maxTime = 1.f; m_flags.OnAdded = NO_EFFECT; m_flags.OnCollide = NO_EFFECT; m_flags.OnEveryFrame = NO_EFFECT; m_flags.OnRemoved = NO_EFFECT; }
PhysicsSystem::PhysicsSystem(World* _world) : Base(ComponentFilter().Requires<CollisionComponent>(), _world) { m_b2World = new b2World(DEFAULTGRAVITY); }
MovementSystem::MovementSystem() : Base(ComponentFilter().Requires<VelocityComponent, PositionComponent>()) { }
ProjectileSystem::ProjectileSystem(World* _world) : Base(ComponentFilter().Requires<PositionComponent, MouseInputComponent>(), _world) { }
AudioSystem::AudioSystem(World* _world) : Base(ComponentFilter().Requires<AudioComponent, CollisionComponent>(), _world) { m_audioManager = AudioManager::GetInstance(); }