public void Load(MyObjectBuilder_SessionComponentMission obj)
 {
     MissionTriggers.Clear();
     if (obj!=null && obj.Triggers != null)
         foreach (var trigger in obj.Triggers.Dictionary)
             MissionTriggers.Add(new MyPlayer.PlayerId(trigger.Key.stm,trigger.Key.ser), new MyMissionTriggers(trigger.Value));
 }
        public MyObjectBuilder_SessionComponentMission GetObjectBuilder()
        {
            var builder = new MyObjectBuilder_SessionComponentMission();

            if (MissionTriggers!=null)
                foreach (var trigger in MissionTriggers)
                    builder.Triggers.Dictionary.Add(new MyObjectBuilder_SessionComponentMission.pair(trigger.Key.SteamId, trigger.Key.SerialId), trigger.Value.GetObjectBuilder());

            return builder;
        }