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

12345678910111213141516171819202122232425
  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, GameObjType.PickedProp)
  18. {
  19. this.place = prop.Place;
  20. this.PropHasPicked = prop;
  21. this.MappingID = prop.ID;
  22. }
  23. }
  24. }