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