Ejemplo n.º 1
0
        internal bool InvokeServerBroadcast(ref Terraria.Localization.NetworkText message, ref float r, ref float g, ref float b)
        {
            ServerBroadcastEventArgs args = new ServerBroadcastEventArgs
            {
                Message = message,
                Color   = new Color((int)r, (int)g, (int)b)
            };

            ServerBroadcast.Invoke(args);

            message = args.Message;
            r       = args.Color.R;
            g       = args.Color.G;
            b       = args.Color.B;

            return(args.Handled);
        }
Ejemplo n.º 2
0
        internal bool InvokeServerBroadcast(ref string message, ref float r, ref float g, ref float b)
        {
            ServerBroadcastEventArgs args = new ServerBroadcastEventArgs
            {
                Message = message,
                Color   = new Color((int)r, (int)g, (int)b)
            };

            ServerBroadcast.Invoke(args);

            message = args.Message;
            r       = args.Color.R;
            g       = args.Color.G;
            b       = args.Color.B;

            return(args.Handled);
        }
Ejemplo n.º 3
0
		internal bool InvokeServerBroadcast(ref string message, ref float r, ref float g, ref float b)
		{
			ServerBroadcastEventArgs args = new ServerBroadcastEventArgs
			{
				Message = message,
				Color = new Color((int)r, (int)g, (int)b)
			};

			ServerBroadcast.Invoke(args);

			message = args.Message;
			r = args.Color.R;
			g = args.Color.G;
			b = args.Color.B;

			return args.Handled;
		}