Exemple #1
0
        //private SoldiersSerializer _soldiersSerializer;
        //public SoldiersSerializer SoldiersSerializer => _soldiersSerializer ?? (_soldiersSerializer = new SoldiersSerializer());

        public static void PopulateCharacter(Character character, MultipleRecords multipleRecords)
        {
            if (character is EnemyPatrol)
            {
                PopulateIPosition(character, multipleRecords);
            }
            else
            {
                PopulateIPosition(character, multipleRecords.GetMultipleRecord(StringConstants.CharacterPosition));
            }
            character.TokenId = multipleRecords.GetStringValue(StringConstants.TokenId);
            character.Angle   = multipleRecords.GetStringValue(StringConstants.Angle);
        }
Exemple #2
0
 public static Mission GetMission(MultipleRecords multipleRecords)
 {
     return(new Mission
     {
         MsbFileName = multipleRecords.GetStringValue(MsbFile),
         BasFileName = multipleRecords.GetStringValue(BasFile),
         Camera = SerializerHelper.Instance.CameraSerializer.Serialize(multipleRecords.GetRecord(CameraSerializer.Camera)),
         Briefing = SerializerHelper.Instance.BriefingSerializer.Serialize(multipleRecords.GetRecord(BriefingSerializer.Briefing)),
         Music = SerializerHelper.Instance.MusicSerializer.Serialize(multipleRecords.GetRecord(MusicSerializer.Music)),
         Ficheros = SerializerHelper.Instance.FicherosSerializer.Serialize(multipleRecords.GetRecord(FicherosSerializer.Ficheros)),
         Abilities = new Abilities(multipleRecords.GetMultipleRecord(StringConstants.Abilities)),
         World = SerializerHelper.Instance.WorldSerializer.Serialize(multipleRecords.GetRecord(WorldSerializer.World))
     });
 }
 public static MultipleRecords GetRoutesMultipleRecords(MultipleRecords multipleRecords)
 {
     return(multipleRecords.GetMultipleRecord(Patrol).GetMultipleRecord(EnemyAction));
 }