示例#1
0
        private static void SavePosition(bool bAsDefault = false)
        {
            string characterPairName = null;

            foreach (var character in HS2_BetterHScenes.characters.Where(character => character != null && character.visibleAll))
            {
                if (characterPairName == null)
                {
                    characterPairName = character.fileParam.fullname;
                }
                else
                {
                    characterPairName += "_" + character.fileParam.fullname;
                }
            }

            if (characterPairName == null)
            {
                return;
            }

            var characterPair = new CharacterPairList(characterPairName);

            for (var charIndex = 0; charIndex < HS2_BetterHScenes.characters.Count; charIndex++)
            {
                if (!HS2_BetterHScenes.characters[charIndex].visibleAll)
                {
                    continue;
                }

                var characterName         = HS2_BetterHScenes.characters[charIndex].fileParam.fullname;
                var characterOffsetParams = new CharacterOffsets(characterName, characterOffsets[charIndex].offsetVectors);

                characterPair.AddCharacterOffset(characterOffsetParams);
            }

            HSceneOffset.SaveCharacterPairPosition(characterPair, bAsDefault);
        }
示例#2
0
 public void AddCharacterOffset(CharacterOffsets characterOffsets)
 {
     CharacterOffsets.Add(characterOffsets);
 }