Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Turupawn authored Jun 18, 2019
1 parent 8d36b1b commit f6e67ed
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Welcome to [mod.io](https://mod.io) Unreal Engine 4 Plugin. It allows game devel

### Browse mods

```
```c++
Modio->GetAllMods(EModioFilterType::SORT_BY_DATE_UPDATED,
4 /* Limit the number of results for a request. */,
0 /* Use the offset to skip over results and paginate through them */,
Expand All @@ -47,7 +47,7 @@ void UModioManager::OnGetAllMods(FModioResponse Response, const TArray<FModioMod
First step is to request a security code to your email.
```
```c++
Modio->EmailRequest("[email protected]", FModioGenericDelegate::CreateUObject(ModioManager, &UModioManager::OnEmailRequest));
// ...
Expand All @@ -60,7 +60,7 @@ void UModioManager::OnEmailRequest(FModioResponse Response)

Finish authentication by submitting the 5-digit code.

```
```c++
Modio->EmailExchange("VBY5A", FModioGenericDelegate::CreateUObject(ModioManager, &UModioManager::OnEmailExchange));

// ...
Expand All @@ -77,7 +77,7 @@ If your game is running inside a popular distribution platform such as Steam or
#### Galaxy Auth
```
```c++
Modio->GalaxyAuth("csEYJ2MWR53QssNNqFgO87sRN", FModioGenericDelegate::CreateUObject(ModioManager, &UModioManager::OnGalaxyAuth));
reports
// ...
Expand All @@ -90,7 +90,7 @@ void UModioManager::OnGalaxyAuth(FModioResponse Response)

#### Steam Auth

```
```c++
Modio->SteamAuth("NDNuZmhnaWdyaGdqOWc0M2o5eTM0aGc", FModioGenericDelegate::CreateUObject(ModioManager, &UModioManager::OnSteamAuth));

// ...
Expand All @@ -107,7 +107,7 @@ Download and remove mods locally by subscribing and unsubscribing.
#### Subscribe
```
```c++
Modio->SubscribeToMod(153, FModioModDelegate::CreateUObject(ModioManager, &UModioManager::OnSubscribeToMod));
// ...
Expand All @@ -120,7 +120,7 @@ void UMyModioManager::OnSubscribeToMod(FModioResponse Response, FModioMod Mod)

### Unsubscribe

```
```c++
Modio->UnsubscribeFromMod(mod_id, FModioGenericDelegate::CreateUObject(ModioManager, &UModioManager::OnUnsubscribeFromMod));

// ...
Expand All @@ -137,7 +137,7 @@ Share mods by creating a mod profile and attaching modfiles to it.
#### Create a mod profile
```
```c++
FModioModCreator ModCreator;
ModCreator.Name = "My Mod";
ModCreator.LogoPath = "ModExample/logo.png";
Expand All @@ -155,7 +155,7 @@ void AModioManager::OnAddMod(FModioResponse Response, FModioMod Mod)

#### Upload a modfile

```
```c++
FModioModfileCreator ModfileCreator;
ModfileCreator.Path = "ModExample/modfile/";
ModfileCreator.Version = "v1.1.0";
Expand All @@ -168,7 +168,7 @@ Modio->AddModfile(132, ModfileCreator);
#### Download listener
```
```c++
Modio->SetModDownloadListener(FModioOnModDownloadDelegate::CreateUObject(ModioManager, &UMyModioManager::OnModDownload));
// ...
Expand All @@ -182,7 +182,7 @@ void UMyModioManager::OnModDownload(int32 ResponseCode, int32 ModId)

#### Upload listener

```
```c++
Modio->SetModUploadListener(FModioOnModDownloadDelegate::CreateUObject(ModioManager, &UMyModioManager::OnModUpload));

// ...
Expand All @@ -199,7 +199,7 @@ Next, download the latest [UE4 release](https://github.com/modio/UE4Plugin/relea
![Alt text](img/settings.png?raw=true "Title")
```
```c++
#include "ModioSubsystem.h"
// ...
Expand Down

0 comments on commit f6e67ed

Please sign in to comment.