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

modio::Mod

Ahmed Castro edited this page Sep 8, 2018 · 6 revisions

The Mod structure is returned by the Mods functions. They represent mods created by the mod.io users.

class Mod
{
public:
  u32 id;
  u32 game_id;
  u32 status;
  u32 visible;
  u32 maturity_option;
  u32 date_added;
  u32 date_updated;
  u32 date_live;
  std::string homepage_url;
  std::string name;
  std::string name_id;
  std::string summary;
  std::string description;
  std::string description_plaintext;
  std::string metadata_blob;
  std::string profile_url;
  Logo logo;
  User submitted_by;
  Modfile modfile;
  Media media;
  Stats stats;
  std::vector<Tag> tags;
  std::vector<MetadataKVP> metadata_kvps;
};

API schema: Mod Object

C compatible base object: ModioMod

Name Type Description
id u32 Unique mod identifier
game_id u32 Unique game identifier
status u32 Status of the mod. See Status
visible u32 See Mod visibility
maturity_option u32 See Maturitty option
date_added long Unix timestamp of date registered
date_updated long Unix timestamp of date last updated
date_live long Unix timestamp of date when set live
homepage_url std::string Mod homepage URL
name std::string Name of the mod
nameid std::string Unique SEO-friendly mod uri
summary std::string Brief summary of the mod
description std::string Description of the mod
description_plaintext std::string Description of the mod converted into plaintext
metadata_blob std::string Metadata for the mod
profile_url std::string Official website url for the mod
logo modio::Logo modio::Logo object containing logo data
submitted_by modio::User modio::User object containing user data
modfile modio::Modfile modio::Modfile object containing file data
media modio::Media modio::Media object containing media data
stats modio::Stats modio::Stats object containing stats data.
tags std::vector<modio::Tag> modio::Tag vector containing tags data
metadata_kvps std::vector<MetadataKVP> modio::MetadataKVP vector containing metadata key value pairs

Contents

Clone this wiki locally