def from_yml_rep(self, yml_rep): super(Door, self).from_yml_rep(yml_rep) self.text_pointer.from_yml_rep(get_from_user_dict(yml_rep, "Text Pointer", str)) self.flag = EbEventFlagTableEntry.from_yml_rep(get_from_user_dict(yml_rep, "Event Flag", int)) self.destination_x = get_from_user_dict(yml_rep, "Destination X", int) self.destination_y = get_from_user_dict(yml_rep, "Destination Y", int) self.destination_direction = get_enum_from_user_dict(yml_rep, "Direction", DestinationDirection) self.destination_style = get_from_user_dict(yml_rep, "Style", int)
def from_yml_rep(self, yml_rep): super(NpcDoor, self).from_yml_rep(yml_rep) self.type = get_enum_from_user_dict(yml_rep, "Type", DoorType) self.text_pointer.from_yml_rep(get_from_user_dict(yml_rep, "Text Pointer", str))
def from_yml_rep(self, yml_rep): super(EscalatorOrStairwayDoor, self).from_yml_rep(yml_rep) self.type = get_enum_from_user_dict(yml_rep, "Type", DoorType) self.direction = get_enum_from_user_dict(yml_rep, "Direction", StairDirection)
def from_yml_rep(self, yml_rep): super(RopeOrLadderDoor, self).from_yml_rep(yml_rep) self.climbable_type = get_enum_from_user_dict(yml_rep, "Type", ClimbableType)