示例#1
0
文件: Ship.cs 项目: algor1/WingServer
        private void OnShipDestroyedCall(int shipId)
        {
            ShipIdArgs args = new ShipIdArgs();

            args.ShipId = shipId;
            OnShipDestroyed(args);
        }
示例#2
0
文件: Ship.cs 项目: algor1/WingServer
        protected virtual void OnShipDestroyed(ShipIdArgs e)
        {
            EventHandler <ShipIdArgs> handler = ShipDestroyed;

            handler?.Invoke(this, e);
        }