Make RenderVoxels fields readonly.

This commit is contained in:
Paul Chote
2015-08-01 13:28:56 +01:00
parent c6ecd772c4
commit 6a586fe501

View File

@@ -73,11 +73,11 @@ namespace OpenRA.Mods.Common.Traits
public class RenderVoxels : IRender, INotifyOwnerChanged public class RenderVoxels : IRender, INotifyOwnerChanged
{ {
readonly List<VoxelAnimation> components = new List<VoxelAnimation>(); readonly List<VoxelAnimation> components = new List<VoxelAnimation>();
Actor self; readonly Actor self;
RenderVoxelsInfo info; readonly RenderVoxelsInfo info;
IBodyOrientation body; readonly IBodyOrientation body;
WRot camera; readonly WRot camera;
WRot lightSource; readonly WRot lightSource;
public RenderVoxels(Actor self, RenderVoxelsInfo info) public RenderVoxels(Actor self, RenderVoxelsInfo info)
{ {