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 773 B

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