Esempio n. 1
0
        private void OnDestroyCall(int ship_id)
        {
            DestroyEventArgs args = new DestroyEventArgs();

            args.ship_id = ship_id;
            OnDestroy(args);
        }
Esempio n. 2
0
        protected virtual void OnDestroy(DestroyEventArgs e)
        {
            EventHandler <DestroyEventArgs> handler = ShipDestroyed;

            Console.WriteLine("handler null? {0}", handler == null);//
            handler?.Invoke(this, e);
        }
Esempio n. 3
0
        private void OnDestroyCall(int ship_id)
        {
            DestroyEventArgs args = new DestroyEventArgs();

            Console.WriteLine("Ship destroyed, id: {0}", ship_id);
            args.ship_id = ship_id;
            OnDestroy(args);
        }
Esempio n. 4
0
        protected virtual void OnDestroy(DestroyEventArgs e)
        {
            EventHandler <DestroyEventArgs> handler = ShipDestroyed;

            handler?.Invoke(this, e);
        }