Change classes that use FieldLoader to use read-only collections.
This commit is contained in:
committed by
Paul Chote
parent
797c71e500
commit
649e7e8c28
@@ -10,6 +10,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Cnc.Graphics;
|
||||
using OpenRA.Mods.Cnc.Traits;
|
||||
@@ -26,8 +27,8 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
public float Scale = 10f;
|
||||
public int LightPitch = 142;
|
||||
public int LightYaw = 682;
|
||||
public float[] LightAmbientColor = [0.6f, 0.6f, 0.6f];
|
||||
public float[] LightDiffuseColor = [0.4f, 0.4f, 0.4f];
|
||||
public ImmutableArray<float> LightAmbientColor = [0.6f, 0.6f, 0.6f];
|
||||
public ImmutableArray<float> LightDiffuseColor = [0.4f, 0.4f, 0.4f];
|
||||
public WRot Rotation = WRot.None;
|
||||
public WAngle CameraAngle = WAngle.FromDegrees(40);
|
||||
|
||||
@@ -35,8 +36,8 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
public Func<string> GetPlayerPalette;
|
||||
public Func<string> GetNormalsPalette;
|
||||
public Func<string> GetShadowPalette;
|
||||
public Func<float[]> GetLightAmbientColor;
|
||||
public Func<float[]> GetLightDiffuseColor;
|
||||
public Func<ImmutableArray<float>> GetLightAmbientColor;
|
||||
public Func<ImmutableArray<float>> GetLightDiffuseColor;
|
||||
public Func<float> GetScale;
|
||||
public Func<int> GetLightPitch;
|
||||
public Func<int> GetLightYaw;
|
||||
|
||||
Reference in New Issue
Block a user