Example #1
0
    def add_nav_target_point(self, pos: mapping.Point, text_comment: str):
        nt = NavTargetPoint(pos)
        nt.text_comment = text_comment
        nt.index = len(self.nav_target_points) + 1

        self.nav_target_points.append(nt)
        return nt
Example #2
0
 def load_from_dict(self, d):
     super(FlyingGroup, self).load_from_dict(d)
     self.modulation = d.get("modulation")
     self.communication = d.get("communication", False)
     self.uncontrolled = d["uncontrolled"]
     self.radio_set = d.get("radioSet", False)
     self.nav_target_points = []
     for n in d.get("NavTargetPoints", []):
         nav_target_point_dict = d["NavTargetPoints"][n]
         self.nav_target_points.append(NavTargetPoint.create_from_dict(nav_target_point_dict))
Example #3
0
 def load_from_dict(self, d: Dict[str, Any], terrain: Terrain) -> None:
     super().load_from_dict(d, terrain)
     self.modulation = d.get("modulation")
     self.communication = d.get("communication", False)
     self.uncontrolled = d["uncontrolled"]
     self.radio_set = d.get("radioSet", False)
     self.nav_target_points = []
     for n in d.get("NavTargetPoints", []):
         nav_target_point_dict = d["NavTargetPoints"][n]
         self.nav_target_points.append(
             NavTargetPoint.create_from_dict(nav_target_point_dict,
                                             terrain))