public static Event_Data read(BinaryReader reader) { Event_Data event_data = new Event_Data { data = new List <Event_Control>() }; event_data.name = reader.ReadString(); event_data.trigger = reader.ReadInt32(); event_data.trigger_action = reader.ReadInt32(); event_data.trigger_timing = reader.ReadInt32(); event_data.trigger_turn = reader.ReadInt32(); event_data.data.read(reader); return(event_data); }
public Event_Data copy() { Event_Data new_data = new Event_Data { name = name, trigger = trigger, trigger_action = trigger_action, trigger_timing = trigger_timing, trigger_turn = trigger_turn, data = new List <Event_Control>(this.data) }; //foreach (Event_Control control in data) // new_data.data.Add(control); return(new_data); }