RitnCoreGame

by Ritn

Coeur du système de jeu développé par Ritn. Core of a game system that is developed by Ritn.

Internal
3 months ago
1.1 - 2.0
3.21K
Owner:
Ritn
Source:
https://github.com/RitnDev/RitnCoreGame
Homepage:
N/A
License:
MIT
Created:
2 years ago
Latest Version:
0.6.6 (3 months ago)
Factorio version:
1.1 - 2.0
Downloaded by:
3.21K users

Présentation / Presentation

Ce mod met en place une structure de données dans la variable "global" du mod.
L'idée est d'utiliser cette structure de données avec les remotes commandes pour centraliser et garantir un système unique entre tous les mods.
This mod sets up a data structure in the mod's "global" variable.
The idea is to use this data structure with the remotes commands to centralize and guarantee a single system between all mods.


Interfaces

Le mod ajoute des interfaces permettant l'accessibilité à la structure de données.
En voici la liste :
The mod adds interfaces to access the data structure.
Here is the list:

Exemple / Example :

function events.on_init(event)

    remote.call("RitnCoreGame", "init_data", "teleporter", {
        id = 0,
        name = "",
        surface_name = "",
        force_name = "",
        position = {x=0, y=0},
        render_id = -1,
        tag_number = -1,
        index = 0,
    })

    remote.call("RitnCoreGame", "add_param_data", "surface", "teleporters", {})

end