ImmersalSetLocalCommand.cs 541 B

12345678910111213141516171819202122
  1. using Blue;
  2. /// <summary>
  3. /// Immersal设置命令
  4. /// 传入 id、projectId、location
  5. /// </summary>
  6. public class ImmersalSetLocalCommand : ICommand
  7. {
  8. public int id;
  9. public int projectId;
  10. public bool location;
  11. public ImmersalSetLocalCommand(int id,int projectId,bool location)
  12. {
  13. this.id = id;
  14. this.projectId = projectId;
  15. this.location = location;
  16. }
  17. public void OnExcute()
  18. {
  19. this.GetService<IImmersalLocationService>().Set(id,projectId,location);
  20. }
  21. }