From f6efc9c5bc35988ac335b2b24016b9be047fb8a9 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 25 Apr 2014 18:10:23 +1200 Subject: [PATCH] Add deprecation notice to the original api. --- OpenRA.Mods.RA/Scripting/LuaScriptInterface.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.RA/Scripting/LuaScriptInterface.cs b/OpenRA.Mods.RA/Scripting/LuaScriptInterface.cs index f5e63f7929..fdb0b0bf17 100644 --- a/OpenRA.Mods.RA/Scripting/LuaScriptInterface.cs +++ b/OpenRA.Mods.RA/Scripting/LuaScriptInterface.cs @@ -46,6 +46,9 @@ namespace OpenRA.Mods.RA.Scripting public void WorldLoaded(World w, WorldRenderer wr) { + Game.Debug("Warning: This map uses the deprecated scripting interface, which will be removed in a future release. " + + "If you are the map author, then please see the OpenRA wiki for instructions on how to migrate to the new API."); + world = w; sma = world.WorldActor.Trait();