From 261ced1e95a2442e60fe90ae8905a5a5bbbd5cd6 Mon Sep 17 00:00:00 2001 From: shangfengh <3495281661@qq.com> Date: Sat, 15 Oct 2022 22:07:02 +0800 Subject: [PATCH] fix: make the type of obj immutable --- logic/Preparation/Interface/IGameObj.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/Preparation/Interface/IGameObj.cs b/logic/Preparation/Interface/IGameObj.cs index a32a1c5..6c5205b 100644 --- a/logic/Preparation/Interface/IGameObj.cs +++ b/logic/Preparation/Interface/IGameObj.cs @@ -4,7 +4,7 @@ namespace Preparation.Interface { public interface IGameObj { - public GameObjType Type { get; set; } + public GameObjType Type { get; } public long ID { get; } public XYPosition Position { get; } // if Square, Pos equals the center public double FacingDirection { get; }