Added Media.AddChatLine to the new Lua API

Unmerged part of https://github.com/OpenRA/OpenRA/pull/5469.
Perhaps two functions should be used: a debug() and a chat() function?

In either case, I strongly disagree with putting the function anywhere else but the global environment, unless we went the OO way and had it in a "chat" object.

On 2014-07-06, at 2:43 PM, "Pavlos Touboulidis" <notifications@github.com> wrote:

> In OpenRA.Mods.RA/Scripting/Global/MediaGlobal.cs:
> 
> > + * see COPYING.
> > + */
> > +#endregion
> > +
> > +using System.Drawing;
> > +
> > +namespace OpenRA.Scripting
> > +{
> > +	[ScriptGlobal("Media")]
> > +	public class MediaGlobal : ScriptGlobal
> > +	{
> > +		public MediaGlobal(ScriptContext context) : base(context) { }
> > +
> > +		public void AddChatLine(string text)
> > +		{
> > +			Game.AddChatLine(Color.White, "Mission", text);
> This will be visible by the players, yes? And it's not only for debugging, it can be used to inform them of something, or even simulate chatter between/from the AI. If yes, pick an appropriate name, not a generic Print.
> 
> \
> Reply to this email directly or view it on GitHub.