예제 #1
0
 private void LoadMaps(ContentReader input, Entity.CharacterMap map, int count)
 {
     for (int j = 0; j < count; j++)
     {
         int folder       = input.ReadInt32();
         int file         = input.ReadInt32();
         int targetFolder = input.ReadInt32();
         int targetFile   = input.ReadInt32();
         map.Add(new FileReference(folder, file), new FileReference(targetFolder, targetFile));
     }
 }
예제 #2
0
        private void LoadCharacterMaps(ContentReader input, Entity entity, int charMapCount)
        {
            for (int i = 0; i < charMapCount; i++)
            {
                // i on id
                string name             = input.ReadString();
                Entity.CharacterMap map = new Entity.CharacterMap(i, name);


                int mapCount = input.ReadInt32();
                LoadMaps(input, map, mapCount);


                entity.AddCharacterMap(map);
            }
        }