New Colony API

From Colony Survival Wiki
Jump to: navigation, search
New Colony API
File:New Colony API Logo.png
Version: 1.1.0.0
Owner: JackPS9
Version: 1.1.0.0
Website: N/A
Discord invite: Rise of the New Colonies
Date created: Fed 18th, 2018


Features[edit | edit source]

XP system[edit | edit source]

The API adds an XP system into the game so NPCs can level up. This feature can be used for making mods and can be enabled or disabled in the config. By disabling this, it disables it for all mods using the feature.

Config[edit | edit source]

Adds a system for JSON files to be used as config files. The amount of JSON files that may be used is limited to one per mod.

Logging[edit | edit source]

The API has a customized logging system. If something happens that a modder does not want to happen they can output it to an error log meant for their mod. The types of logging are:

  • Normal, which displays as white text. Meant for mainly loading when starting up.
  • Info, which displays as green text. It is displayed during the game's run time.
  • Error, which displays as red text. This includes anything that the modder does not want to happen, so they can try to fix it.
  • Issue, which is meant for any issues inside the API.

Version checking[edit | edit source]

The API has a version checker that can be used by players to check if a mod is up to date with the mod's latest version.

Type Autoloader[edit | edit source]

By using the base type "Type" (PhentrixGames.NewColonyAPI.Classes.Type, ColonyAPI.Interfaces.IAutoType), the API will auto register your items for you. It'll give off a warning if that type is already registered when loading up the game, will overwrite the already existing one though.

Localization[edit | edit source]

Built in localization so you just pass it the name of your mod as well as the path to your localization folder, the API does the rest.

Event System[edit | edit source]

Power System[edit | edit source]

Mod Dependencies[edit | edit source]

Server features[edit | edit source]

Rotating messages[edit | edit source]

Allows server owners to rotate between a list of messages to send to everyone on the server.

See also[edit | edit source]

Rise of the New Colonies