Merge pull request #9978 from RoosterDragon/cache-script-actor-luavalue
Cache self.ToLuaValue in ScriptTriggers
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
"only contain alive actors.")]
|
"only contain alive actors.")]
|
||||||
public bool Build(string[] actorTypes, LuaFunction actionFunc = null)
|
public bool Build(string[] actorTypes, LuaFunction actionFunc = null)
|
||||||
{
|
{
|
||||||
if (triggers.Triggers[Trigger.OnProduction].Any())
|
if (triggers.HasAnyCallbacksFor(Trigger.OnProduction))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var queue = queues.Where(q => actorTypes.All(t => GetBuildableInfo(t).Queue.Contains(q.Info.Type)))
|
var queue = queues.Where(q => actorTypes.All(t => GetBuildableInfo(t).Queue.Contains(q.Info.Type)))
|
||||||
@@ -150,7 +150,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
"Note: it does not check whether this particular type of actor is being produced.")]
|
"Note: it does not check whether this particular type of actor is being produced.")]
|
||||||
public bool IsProducing(string actorType)
|
public bool IsProducing(string actorType)
|
||||||
{
|
{
|
||||||
if (triggers.Triggers[Trigger.OnProduction].Any())
|
if (triggers.HasAnyCallbacksFor(Trigger.OnProduction))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return queues.Where(q => GetBuildableInfo(actorType).Queue.Contains(q.Info.Type))
|
return queues.Where(q => GetBuildableInfo(actorType).Queue.Contains(q.Info.Type))
|
||||||
|
|||||||
@@ -28,13 +28,14 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
[Desc("Allows map scripts to attach triggers to this actor via the Triggers global.")]
|
[Desc("Allows map scripts to attach triggers to this actor via the Triggers global.")]
|
||||||
public class ScriptTriggersInfo : ITraitInfo
|
public class ScriptTriggersInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public object Create(ActorInitializer init) { return new ScriptTriggers(init.World); }
|
public object Create(ActorInitializer init) { return new ScriptTriggers(init.World, init.Self); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public sealed class ScriptTriggers : INotifyIdle, INotifyDamage, INotifyKilled, INotifyProduction, INotifyOtherProduction,
|
public sealed class ScriptTriggers : INotifyIdle, INotifyDamage, INotifyKilled, INotifyProduction, INotifyOtherProduction,
|
||||||
INotifyObjectivesUpdated, INotifyCapture, INotifyInfiltrated, INotifyAddedToWorld, INotifyRemovedFromWorld, IDisposable, INotifyDiscovered
|
INotifyObjectivesUpdated, INotifyCapture, INotifyInfiltrated, INotifyAddedToWorld, INotifyRemovedFromWorld, INotifyDiscovered, INotifyActorDisposing
|
||||||
{
|
{
|
||||||
readonly World world;
|
readonly World world;
|
||||||
|
readonly Actor self;
|
||||||
|
|
||||||
public event Action<Actor> OnKilledInternal = _ => { };
|
public event Action<Actor> OnKilledInternal = _ => { };
|
||||||
public event Action<Actor> OnCapturedInternal = _ => { };
|
public event Action<Actor> OnCapturedInternal = _ => { };
|
||||||
@@ -42,19 +43,44 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
public event Action<Actor, Actor> OnProducedInternal = (a, b) => { };
|
public event Action<Actor, Actor> OnProducedInternal = (a, b) => { };
|
||||||
public event Action<Actor, Actor> OnOtherProducedInternal = (a, b) => { };
|
public event Action<Actor, Actor> OnOtherProducedInternal = (a, b) => { };
|
||||||
|
|
||||||
public Dictionary<Trigger, List<Pair<LuaFunction, ScriptContext>>> Triggers = new Dictionary<Trigger, List<Pair<LuaFunction, ScriptContext>>>();
|
readonly Dictionary<Trigger, List<Triggerable>> triggers = new Dictionary<Trigger, List<Triggerable>>();
|
||||||
|
|
||||||
public ScriptTriggers(World world)
|
struct Triggerable : IDisposable
|
||||||
|
{
|
||||||
|
public readonly LuaFunction Function;
|
||||||
|
public readonly ScriptContext Context;
|
||||||
|
public readonly LuaValue Self;
|
||||||
|
public Triggerable(LuaFunction function, ScriptContext context, Actor self)
|
||||||
|
{
|
||||||
|
Function = (LuaFunction)function.CopyReference();
|
||||||
|
Context = context;
|
||||||
|
Self = self.ToLuaValue(Context);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
Function.Dispose();
|
||||||
|
Self.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public ScriptTriggers(World world, Actor self)
|
||||||
{
|
{
|
||||||
this.world = world;
|
this.world = world;
|
||||||
|
this.self = self;
|
||||||
|
|
||||||
foreach (Trigger t in Enum.GetValues(typeof(Trigger)))
|
foreach (Trigger t in Enum.GetValues(typeof(Trigger)))
|
||||||
Triggers.Add(t, new List<Pair<LuaFunction, ScriptContext>>());
|
triggers.Add(t, new List<Triggerable>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RegisterCallback(Trigger trigger, LuaFunction func, ScriptContext context)
|
public void RegisterCallback(Trigger trigger, LuaFunction func, ScriptContext context)
|
||||||
{
|
{
|
||||||
Triggers[trigger].Add(Pair.New((LuaFunction)func.CopyReference(), context));
|
triggers[trigger].Add(new Triggerable(func, context, self));
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool HasAnyCallbacksFor(Trigger trigger)
|
||||||
|
{
|
||||||
|
return triggers[trigger].Count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TickIdle(Actor self)
|
public void TickIdle(Actor self)
|
||||||
@@ -62,16 +88,15 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnIdle])
|
foreach (var f in triggers[Trigger.OnIdle])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
f.Function.Call(f.Self).Dispose();
|
||||||
f.First.Call(a).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,17 +107,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnDamaged])
|
foreach (var f in triggers[Trigger.OnDamaged])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = e.Attacker.ToLuaValue(f.Context))
|
||||||
using (var b = e.Attacker.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b).Dispose();
|
||||||
f.First.Call(a, b).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,17 +128,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Run Lua callbacks
|
// Run Lua callbacks
|
||||||
foreach (var f in Triggers[Trigger.OnKilled])
|
foreach (var f in triggers[Trigger.OnKilled])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = e.Attacker.ToLuaValue(f.Context))
|
||||||
using (var b = e.Attacker.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b).Dispose();
|
||||||
f.First.Call(a, b).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -129,17 +152,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Run Lua callbacks
|
// Run Lua callbacks
|
||||||
foreach (var f in Triggers[Trigger.OnProduction])
|
foreach (var f in triggers[Trigger.OnProduction])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = other.ToLuaValue(f.Context))
|
||||||
using (var b = other.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b).Dispose();
|
||||||
f.First.Call(a, b).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -153,16 +175,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnPlayerWon])
|
foreach (var f in triggers[Trigger.OnPlayerWon])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = player.ToLuaValue(f.Second))
|
using (var a = player.ToLuaValue(f.Context))
|
||||||
f.First.Call(a).Dispose();
|
f.Function.Call(a).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,16 +195,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnPlayerLost])
|
foreach (var f in triggers[Trigger.OnPlayerLost])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = player.ToLuaValue(f.Second))
|
using (var a = player.ToLuaValue(f.Context))
|
||||||
f.First.Call(a).Dispose();
|
f.Function.Call(a).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,17 +215,17 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnObjectiveAdded])
|
foreach (var f in triggers[Trigger.OnObjectiveAdded])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = player.ToLuaValue(f.Second))
|
using (var a = player.ToLuaValue(f.Context))
|
||||||
using (var b = id.ToLuaValue(f.Second))
|
using (var b = id.ToLuaValue(f.Context))
|
||||||
f.First.Call(a, b).Dispose();
|
f.Function.Call(a, b).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -214,17 +236,17 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnObjectiveCompleted])
|
foreach (var f in triggers[Trigger.OnObjectiveCompleted])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = player.ToLuaValue(f.Second))
|
using (var a = player.ToLuaValue(f.Context))
|
||||||
using (var b = id.ToLuaValue(f.Second))
|
using (var b = id.ToLuaValue(f.Context))
|
||||||
f.First.Call(a, b).Dispose();
|
f.Function.Call(a, b).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -235,17 +257,17 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnObjectiveFailed])
|
foreach (var f in triggers[Trigger.OnObjectiveFailed])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = player.ToLuaValue(f.Second))
|
using (var a = player.ToLuaValue(f.Context))
|
||||||
using (var b = id.ToLuaValue(f.Second))
|
using (var b = id.ToLuaValue(f.Context))
|
||||||
f.First.Call(a, b).Dispose();
|
f.Function.Call(a, b).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -256,19 +278,18 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnCapture])
|
foreach (var f in triggers[Trigger.OnCapture])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = captor.ToLuaValue(f.Context))
|
||||||
using (var b = captor.ToLuaValue(f.Second))
|
using (var c = oldOwner.ToLuaValue(f.Context))
|
||||||
using (var c = oldOwner.ToLuaValue(f.Second))
|
using (var d = newOwner.ToLuaValue(f.Context))
|
||||||
using (var d = newOwner.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b, c, d).Dispose();
|
||||||
f.First.Call(a, b, c, d).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -282,17 +303,16 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnInfiltrated])
|
foreach (var f in triggers[Trigger.OnInfiltrated])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = infiltrator.ToLuaValue(f.Context))
|
||||||
using (var b = infiltrator.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b).Dispose();
|
||||||
f.First.Call(a, b).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -303,16 +323,15 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnAddedToWorld])
|
foreach (var f in triggers[Trigger.OnAddedToWorld])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
f.Function.Call(f.Self).Dispose();
|
||||||
f.First.Call(a).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -324,16 +343,15 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Run Lua callbacks
|
// Run Lua callbacks
|
||||||
foreach (var f in Triggers[Trigger.OnRemovedFromWorld])
|
foreach (var f in triggers[Trigger.OnRemovedFromWorld])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
f.Function.Call(f.Self).Dispose();
|
||||||
f.First.Call(a).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -348,17 +366,17 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Run Lua callbacks
|
// Run Lua callbacks
|
||||||
foreach (var f in Triggers[Trigger.OnOtherProduction])
|
foreach (var f in triggers[Trigger.OnOtherProduction])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = producee.ToLuaValue(f.Second))
|
using (var a = producee.ToLuaValue(f.Context))
|
||||||
using (var b = produced.ToLuaValue(f.Second))
|
using (var b = produced.ToLuaValue(f.Context))
|
||||||
f.First.Call(a, b).Dispose();
|
f.Function.Call(a, b).Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -372,33 +390,31 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
if (world.Disposing)
|
if (world.Disposing)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnDiscovered])
|
foreach (var f in triggers[Trigger.OnDiscovered])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.ToLuaValue(f.Second))
|
using (var b = discoverer.ToLuaValue(f.Context))
|
||||||
using (var b = discoverer.ToLuaValue(f.Second))
|
f.Function.Call(f.Self, b).Dispose();
|
||||||
f.First.Call(a, b).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var f in Triggers[Trigger.OnPlayerDiscovered])
|
foreach (var f in triggers[Trigger.OnPlayerDiscovered])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var a = self.Owner.ToLuaValue(f.Second))
|
using (var a = self.Owner.ToLuaValue(f.Context))
|
||||||
using (var b = discoverer.ToLuaValue(f.Second))
|
using (var b = discoverer.ToLuaValue(f.Context))
|
||||||
using (var c = self.ToLuaValue(f.Second))
|
f.Function.Call(a, b, f.Self).Dispose();
|
||||||
f.First.Call(a, b, c).Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
f.Second.FatalError(ex.Message);
|
f.Context.FatalError(ex.Message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -408,8 +424,10 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
{
|
{
|
||||||
world.AddFrameEndTask(w =>
|
world.AddFrameEndTask(w =>
|
||||||
{
|
{
|
||||||
Triggers[trigger].Select(p => p.First).Do(f => f.Dispose());
|
var triggerables = triggers[trigger];
|
||||||
Triggers[trigger].Clear();
|
foreach (var f in triggerables)
|
||||||
|
f.Dispose();
|
||||||
|
triggerables.Clear();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,7 +437,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
Clear(t);
|
Clear(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Disposing(Actor self)
|
||||||
{
|
{
|
||||||
ClearAll();
|
ClearAll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user