Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModioModCreator

Ahmed Castro edited this page Jan 8, 2018 · 5 revisions

Object needed to create and update Mods (C compatible). Instead of editing the struct directly, we recommend you customize it using the ModioModHandler functions.

struct ModioModHandler
{
  char* logo;
  char* name;
  char* homepage;
  char* summary;
  char* description;
  char* metadata_blob;
  char* name_id;
  char* modfile;
  ModioListNode* tags;
};

Struct attributes

Name Type Description
logo_path char* Logo local path
name char* Name of the mod
homepage char* Mod homepage URL
summary char* Brief summary of the mod
description char* Description of the mod
metadata_blob char* Metadata for the mod
name_id char* Unique SEO-friendly mod uri
modfile char* Modfile unique identifier
tag ModioListNode* Add a tag to the mod

Functions

modioInitModHandler

void modioInitModHandler(ModioModHandler* mod_handler)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize

modioSetLogoPath

void modioSetLogoPath(ModioModHandler* mod_handler, char* logo_path)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
logo_path char* Logo local path

modioSetName

void modioSetName(ModioModHandler* mod_handler, char* name)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
name char* Name of the mod

modioSetHomepage

void modioSetHomepage(ModioModHandler* mod_handler, char* homepage)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
homepage char* Mod homepage URL

modioSetSummary

void modioSetSummary(ModioModHandler* mod_handler, char* summary)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
summary char* Brief summary of the mod

modioSetDescription

void modioSetDescription(ModioModHandler* mod_handler, char* description)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
description char* Description of the mod

modioSetMetadata

void modioSetMetadata(ModioModHandler* mod_handler, char* metadata_blob)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
metadata_blob char* Metadata for the mod

modioSetNameid

void modioSetNameid(ModioModHandler* mod_handler, char* name_id)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
name_id char* Unique SEO-friendly mod uri

modioSetModfile

void modioSetModfile(ModioModHandler* mod_handler, u32 modfile)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
modfile u32 Modfile unique identifier

modioAddTag

void modioAddTag(ModioModHandler* mod_handler, char* tag)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize
tag char* Add a tag to the mod

modioFreeModHandler

void modioFreeModHandler(ModioModHandler* mod_handler)
Name Type Description
modfile_handler ModioModHandler* ModioModHandler object to customize

Contents

Clone this wiki locally