From b341a41faea42a821f85e4fa71cc68c4d0d4b1bb Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 29 Dec 2023 21:07:44 +0900 Subject: [PATCH] typo public property getter -> readonly --- src/DotRecast.Detour.Extras/Jumplink/JumpLinkType.cs | 2 +- src/DotRecast.Recast.Demo/Draw/DrawMode.cs | 4 ++-- src/DotRecast.Recast.Toolset/Tools/RcCrowdToolMode.cs | 4 ++-- src/DotRecast.Recast.Toolset/Tools/RcDynamicUpdateToolMode.cs | 4 ++-- src/DotRecast.Recast.Toolset/Tools/RcTestNavmeshToolMode.cs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/DotRecast.Detour.Extras/Jumplink/JumpLinkType.cs b/src/DotRecast.Detour.Extras/Jumplink/JumpLinkType.cs index 38a4764..817d3d9 100644 --- a/src/DotRecast.Detour.Extras/Jumplink/JumpLinkType.cs +++ b/src/DotRecast.Detour.Extras/Jumplink/JumpLinkType.cs @@ -10,7 +10,7 @@ namespace DotRecast.Detour.Extras.Jumplink public static readonly JumpLinkType EDGE_CLIMB_DOWN = new JumpLinkType(EDGE_CLIMB_DOWN_BIT); public static readonly JumpLinkType EDGE_JUMP_OVER = new JumpLinkType(EDGE_JUMP_OVER_BIT); - public int Bit { get; } + public readonly int Bit; private JumpLinkType(int bit) { diff --git a/src/DotRecast.Recast.Demo/Draw/DrawMode.cs b/src/DotRecast.Recast.Demo/Draw/DrawMode.cs index 2ae378b..ff2911d 100644 --- a/src/DotRecast.Recast.Demo/Draw/DrawMode.cs +++ b/src/DotRecast.Recast.Demo/Draw/DrawMode.cs @@ -64,8 +64,8 @@ public class DrawMode DRAWMODE_POLYMESH_DETAIL ); - public int Idx { get; } - public string Text { get; } + public readonly int Idx; + public readonly string Text; private DrawMode(int idx, string text) { diff --git a/src/DotRecast.Recast.Toolset/Tools/RcCrowdToolMode.cs b/src/DotRecast.Recast.Toolset/Tools/RcCrowdToolMode.cs index 69a5328..65f9440 100644 --- a/src/DotRecast.Recast.Toolset/Tools/RcCrowdToolMode.cs +++ b/src/DotRecast.Recast.Toolset/Tools/RcCrowdToolMode.cs @@ -16,8 +16,8 @@ namespace DotRecast.Recast.Toolset.Tools TOGGLE_POLYS ); - public int Idx { get; } - public string Label { get; } + public readonly int Idx; + public readonly string Label; private RcCrowdToolMode(int idx, string label) { diff --git a/src/DotRecast.Recast.Toolset/Tools/RcDynamicUpdateToolMode.cs b/src/DotRecast.Recast.Toolset/Tools/RcDynamicUpdateToolMode.cs index 9a12183..a7125d5 100644 --- a/src/DotRecast.Recast.Toolset/Tools/RcDynamicUpdateToolMode.cs +++ b/src/DotRecast.Recast.Toolset/Tools/RcDynamicUpdateToolMode.cs @@ -12,8 +12,8 @@ namespace DotRecast.Recast.Toolset.Tools BUILD, COLLIDERS, RAYCAST ); - public int Idx { get; } - public string Label { get; } + public readonly int Idx; + public readonly string Label; private RcDynamicUpdateToolMode(int idx, string label) { diff --git a/src/DotRecast.Recast.Toolset/Tools/RcTestNavmeshToolMode.cs b/src/DotRecast.Recast.Toolset/Tools/RcTestNavmeshToolMode.cs index 2c60a4e..64159a9 100644 --- a/src/DotRecast.Recast.Toolset/Tools/RcTestNavmeshToolMode.cs +++ b/src/DotRecast.Recast.Toolset/Tools/RcTestNavmeshToolMode.cs @@ -27,8 +27,8 @@ namespace DotRecast.Recast.Toolset.Tools ); - public int Idx { get; } - public string Label { get; } + public readonly int Idx; + public readonly string Label; private RcTestNavmeshToolMode(int idx, string label) {