This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am tripleeh on github. | |
* I am garethnoyce (https://keybase.io/garethnoyce) on keybase. | |
* I have a public key ASCaSfQKq3R_910N6vs0fVs-rI6ZR2m8HhgTh04e-FgECQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FString sFullPath = FPaths::ProjectSavedDir() + _sDevNotesFilename; | |
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*sFullPath)) | |
{ | |
UDbg::LOG_INFO("UDevNote::Init: Found Dev Notes Json File"); | |
FString FileString; | |
FFileHelper::LoadFileToString(FileString, *sFullPath); | |
TSharedPtr<FJsonObject> RootJson = NULL; | |
TSharedRef<TJsonReader<>> JsonReader = TJsonReaderFactory<>::Create(FileString); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a root JSon object that'll hold all the sub sections | |
TSharedRef<FJsonObject> RootJson = MakeShareable(new FJsonObject); | |
// Output the contents of the DevNotes arrays | |
{ | |
for (int i = 0; i < m_aNoteContents.Num(); ++i) | |
{ | |
TSharedRef<FJsonObject> SubJson = MakeShareable(new FJsonObject); | |
SubJson->SetNumberField(TEXT("X"), m_aNotePositions[i].X); | |
SubJson->SetNumberField(TEXT("Y"), m_aNotePositions[i].Y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PublicDependencyModuleNames.AddRange(new string[] { ... "Json", "JsonUtilities" }); |