Exemplo n.º 1
0
 // An entity has done something that triggered an animated image. Pass the effect to WorldController.
 private void Entity_CreateEffect(object o, EffectEventArgs e)
 {
     OnCreateEffect(o, e);
 }
Exemplo n.º 2
0
        // Send effect updates to worldcontroller for display.
        private void OnCreateEffect(object o, EffectEventArgs e)
        {
            EffectEventHandler handler = CreateEffect;

            handler?.Invoke(o, e);
        }
Exemplo n.º 3
0
 private void EntityController_CreateEffect(object o, EffectEventArgs e)
 {
     AddEffect(e.Effect);
 }