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.

PickedProp.cs 741 B

123456789101112131415161718192021222324
  1. using Preparation.Utility;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GameClass.GameObj
  8. {
  9. // 为方便界面组做道具拾起特效,现引入“被捡起的道具”,在每帧发送给界面组
  10. public class PickedProp : GameObj
  11. {
  12. public override ShapeType Shape => ShapeType.Circle;
  13. public override bool IsRigid => false;
  14. public long MappingID { get; }
  15. public Prop PropHasPicked;
  16. public PickedProp(Prop prop) :
  17. base(prop.Position, prop.Radius, prop.Place, GameObjType.PickedProp)
  18. {
  19. this.PropHasPicked = prop;
  20. this.MappingID = prop.ID;
  21. }
  22. }
  23. }