using Preparation.Interface; using Preparation.Utility; using System; namespace GameClass.GameObj { /// /// 箱子 /// public class Chest : Immovable { public Chest(XY initPos) : base(initPos, GameData.numOfPosGridPerCell / 2, GameObjType.Chest) { } public override bool IsRigid => true; public override ShapeType Shape => ShapeType.Square; private readonly Gadget[] propInChest = new Gadget[GameData.maxNumOfPropInChest] { new NullProp(), new NullProp() }; public Gadget[] PropInChest => propInChest; private LongProgressByTime openProgress = new LongProgressByTime(); public LongProgressByTime OpenProgress { get => openProgress; } } }