You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Chest.cs 801 B

123456789101112131415161718192021222324
  1. using Preparation.Interface;
  2. using Preparation.Utility;
  3. namespace GameClass.GameObj
  4. {
  5. /// <summary>
  6. /// 箱子
  7. /// </summary>
  8. public class Chest : Immovable
  9. {
  10. public Chest(XY initPos) :
  11. base(initPos, GameData.numOfPosGridPerCell / 2, GameObjType.Chest)
  12. {
  13. }
  14. public override bool IsRigid => true;
  15. public override ShapeType Shape => ShapeType.Square;
  16. private readonly Gadget[] propInChest = new Gadget[GameData.maxNumOfPropInChest] { new NullProp(), new NullProp() };
  17. public Gadget[] PropInChest => propInChest;
  18. private TimeBasedProgressForInterrupting openProgress = new TimeBasedProgressForInterrupting();
  19. public TimeBasedProgressForInterrupting OpenProgress { get => openProgress; }
  20. }
  21. }