BattleMgr_Cmd.cs 689 B

1234567891011121314151617181920212223242526272829303132
  1. 
  2. using CommonAI.Zone;
  3. using ET.Client;
  4. namespace ET
  5. {
  6. //发送战斗服指令相关
  7. public partial class BattleMgr
  8. {
  9. private bool autoFight;
  10. public bool AutoFight
  11. {
  12. get
  13. {
  14. return autoFight;
  15. }
  16. set
  17. {
  18. if(value == autoFight) return;
  19. else
  20. {
  21. autoFight = value;
  22. }
  23. }
  24. }
  25. public CommonAI.Zone.Action SetAutoFight(bool flag)
  26. {
  27. return new UnitGuardAction(UnitMgr.Instance.ActorId, flag, CommonAI.XmdsConstConfig.AUTO_GUARD_MODE_POINT);
  28. }
  29. }
  30. }