A few more misc explicit interface changes

By-products of making ITick require explicit implementation.
This commit is contained in:
reaperrr
2017-09-07 19:29:08 +02:00
committed by Matthias Mailänder
parent 28e1f391e0
commit 32df83d3c4
3 changed files with 5 additions and 5 deletions

View File

@@ -30,13 +30,14 @@ namespace OpenRA.Mods.Common.Scripting
{
readonly LuaScriptInfo info;
ScriptContext context;
bool disposed;
public LuaScript(LuaScriptInfo info)
{
this.info = info;
}
public void WorldLoaded(World world, WorldRenderer worldRenderer)
void IWorldLoaded.WorldLoaded(World world, WorldRenderer worldRenderer)
{
var scripts = info.Scripts ?? Enumerable.Empty<string>();
context = new ScriptContext(world, worldRenderer, scripts);
@@ -48,8 +49,7 @@ namespace OpenRA.Mods.Common.Scripting
context.Tick(self);
}
bool disposed;
public void Disposing(Actor self)
void INotifyActorDisposing.Disposing(Actor self)
{
if (disposed)
return;