public AfterFireEffectEventListener(ClientEffectContext context, IEntityIdGenerator idGenerator, WeaponEffectConfig config) { _config = config; _context = context; _idGenerator = idGenerator; }
public AfterFireEffectEventListener CreateEffectManager(WeaponEffectConfig config) { if (SharedConfig.IsServer) { return(new ServerFireEffectEventListener(_contexts.clientEffect, _entityIdGenerator, config)); } else { return(new AfterFireEffectEventListener(_contexts.clientEffect, _entityIdGenerator, config)); } }
public AfterFireEventListener CreateEffectManager(WeaponEffectConfig config) { //TODO 近战特效 return(new AfterFireEventListener(_contexts.clientEffect, _entityIdGenerator, config)); }
public ServerFireEffectEventListener(ClientEffectContext context, IEntityIdGenerator idGenerator, WeaponEffectConfig config) : base(context, idGenerator, config) { }