/// <summary> /// Create the required files for this Person /// </summary> internal void CreateFile(IntegratedAuthoringToolAsset iat, string storageLocation, string fileName = "") { //Copy FAtiMA template files for this Person RolePlayCharacter = ConfigStore.RolePlayCharacter.Copy(); SetRelations(); RolePlayCharacter.BodyName = Name; var noSpaceName = RolePlayCharacter.BodyName.NoSpaces(); RolePlayCharacter.CharacterName = noSpaceName.ToName(); if (string.IsNullOrEmpty(fileName)) { fileName = noSpaceName; } RolePlayCharacter.VoiceName = fileName; RolePlayCharacter.SetFutureFilePath(Path.Combine(storageLocation, fileName + ".rpc")); RolePlayCharacter.Save(); //add without check to adjust saving when adding (saves a bit of time on mobile platforms) iat.AddNewCharacterSourceWithoutCheck(new CharacterSourceDTO { Source = RolePlayCharacter.AssetFilePath }); }