Beispiel #1
0
 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)
Beispiel #2
0
 def from_yml_rep(self, yml_rep):
     self.x = get_from_user_dict(yml_rep, "X", int)
     self.y = get_from_user_dict(yml_rep, "Y", int)
Beispiel #3
0
 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))
Beispiel #4
0
 def from_yml_rep(self, yml_rep):
     super(SwitchDoor, self).from_yml_rep(yml_rep)
     self.flag = EbEventFlagTableEntry.from_yml_rep(get_from_user_dict(yml_rep, "Event Flag", int))
     self.text_pointer.from_yml_rep(get_from_user_dict(yml_rep, "Text Pointer", str))