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

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