Cleanup with resharper (mostly removing redundancies & using collection.Length/Count properties instead of the Count method)
This commit is contained in:
@@ -98,8 +98,8 @@ namespace Barotrauma.Lights
|
||||
public LightSource (XElement element)
|
||||
: this(Vector2.Zero, 100.0f, Color.White, null)
|
||||
{
|
||||
float range = ToolBox.GetAttributeFloat(element, "range", 100.0f);
|
||||
Color color = new Color(ToolBox.GetAttributeVector4(element, "color", Vector4.One));
|
||||
range = ToolBox.GetAttributeFloat(element, "range", 100.0f);
|
||||
color = new Color(ToolBox.GetAttributeVector4(element, "color", Vector4.One));
|
||||
|
||||
CastShadows = ToolBox.GetAttributeBool(element, "castshadows", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user