Browse Source

fix: make the type of obj immutable

tags/0.1.0
shangfengh 3 years ago
parent
commit
261ced1e95
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      logic/Preparation/Interface/IGameObj.cs

+ 1
- 1
logic/Preparation/Interface/IGameObj.cs View File

@@ -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; }


Loading…
Cancel
Save