Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge

IntraSharp

An intralisim map configuration tool.

How to use

Installing

Naviage towards the releases page Here
Download the latest release,
Add it to your refrences in your C# Project.

Features

  • Full map json data.
  • Ability to read and write map data.

Examples

Getting a configuration file

using IntraSharp;

public class Program
{
  public static void Main(string[] args)
  {
    IntraConfig config = IntraConfig.LoadConfig(args[0]); // Loads the config in the 1st argument, which is a file path. 
  }
}

Removing/Adding events

using IntraSharp;

public class Program
{
  public static void Main(string[] args)
  {
    IntraConfig config = IntraConfig.LoadConfig(args[0]); // Loads the config in the 1st argument, which is a file path. 
    config.Config.Events.Clear(); // Removes all events
    Event e = new Event(); // Creates a new event object
    e.Time = 0; // Sets the time to the begging of the map.
    Data data = new Data(); // Makes a new data type
    data.Type = DataType.SpawnObj; // We want to spawn in some arcs so use SpawnObj
    data.DataString = "[LeftUpDownRight]"; // We want to have a full circle so we do [LeftUpDownRight]
    e.Data = data.ConvertToReadableData(); // Convert it to readable data so Intra can load it
    config.Config.Events.Add(e); // Add the event
  }
}

Saving the config

using IntraSharp;

public class Program
{
  public static void Main(string[] args)
  {
    IntraConfig config = IntraConfig.LoadConfig(args[0]); // Loads the config in the 1st argument, which is a file path. 
    config.Config.Events.Clear(); // Removes all events
    Event e = new Event(); // Creates a new event object
    e.Time = 0; // Sets the time to the begging of the map.
    Data data = new Data(); // Makes a new data type
    data.Type = DataType.SpawnObj; // We want to spawn in some arcs so use SpawnObj
    data.DataString = "[LeftUpDownRight]"; // We want to have a full circle so we do [LeftUpDownRight]
    e.Data = data.ConvertToReadableData(); // Convert it to readable data so Intra can load it
    config.Config.Events.Add(e); // Add the event
    config.SaveConfig(); // Save the config
  }
}

Libarys used:

Newtonsoft.Json

About

An intralisim map configuration tool.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages