Move ctor initializers to their own line.
This commit is contained in:
@@ -21,7 +21,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("Actor")]
|
||||
public class ActorGlobal : ScriptGlobal
|
||||
{
|
||||
public ActorGlobal(ScriptContext context) : base(context) { }
|
||||
public ActorGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new actor. initTable specifies a list of key-value pairs that defines the initial parameters for the actor's traits.")]
|
||||
public Actor Create(string type, bool addToWorld, LuaTable initTable)
|
||||
|
||||
@@ -15,7 +15,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("CPos")]
|
||||
public class CPosGlobal : ScriptGlobal
|
||||
{
|
||||
public CPosGlobal(ScriptContext context) : base(context) { }
|
||||
public CPosGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new CPos with the specified coordinates.")]
|
||||
public CPos New(int x, int y) { return new CPos(x, y); }
|
||||
@@ -27,7 +28,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("CVec")]
|
||||
public class CVecGlobal : ScriptGlobal
|
||||
{
|
||||
public CVecGlobal(ScriptContext context) : base(context) { }
|
||||
public CVecGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new CVec with the specified coordinates.")]
|
||||
public CVec New(int x, int y) { return new CVec(x, y); }
|
||||
@@ -39,7 +41,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("WPos")]
|
||||
public class WPosGlobal : ScriptGlobal
|
||||
{
|
||||
public WPosGlobal(ScriptContext context) : base(context) { }
|
||||
public WPosGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new WPos with the specified coordinates.")]
|
||||
public WPos New(int x, int y, int z) { return new WPos(x, y, z); }
|
||||
@@ -51,7 +54,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("WVec")]
|
||||
public class WVecGlobal : ScriptGlobal
|
||||
{
|
||||
public WVecGlobal(ScriptContext context) : base(context) { }
|
||||
public WVecGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new WVec with the specified coordinates.")]
|
||||
public WVec New(int x, int y, int z) { return new WVec(x, y, z); }
|
||||
@@ -63,7 +67,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("WDist")]
|
||||
public class WDistGlobal : ScriptGlobal
|
||||
{
|
||||
public WDistGlobal(ScriptContext context) : base(context) { }
|
||||
public WDistGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Create a new WDist.")]
|
||||
public WDist New(int r) { return new WDist(r); }
|
||||
|
||||
@@ -18,7 +18,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("Player")]
|
||||
public class PlayerGlobal : ScriptGlobal
|
||||
{
|
||||
public PlayerGlobal(ScriptContext context) : base(context) { }
|
||||
public PlayerGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
[Desc("Returns the player with the specified internal name, or nil if a match is not found.")]
|
||||
public Player GetPlayer(string name)
|
||||
|
||||
@@ -20,7 +20,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
{
|
||||
readonly RadarPings radarPings;
|
||||
|
||||
public RadarGlobal(ScriptContext context) : base(context)
|
||||
public RadarGlobal(ScriptContext context)
|
||||
: base(context)
|
||||
{
|
||||
radarPings = context.World.WorldActor.TraitOrDefault<RadarPings>();
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
[ScriptGlobal("Trigger")]
|
||||
public class TriggerGlobal : ScriptGlobal
|
||||
{
|
||||
public TriggerGlobal(ScriptContext context) : base(context) { }
|
||||
public TriggerGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
public static ScriptTriggers GetScriptTriggers(Actor a)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user