Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

RitnCoreGame

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:

![interfaces]

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

[interfaces]: https://i.ibb.co/JC722KV/interfaces-core.png

Рейтинг

Войдите, чтобы голосовать.
🏅 Нет оценок

Базовые теги:

Зависимости мода

Логотип мода

RitnLib

Конфликты мода

Логотип мода

Warptorio2

Логотип мода

Space Exploration

Плагины

Перейти в каталог плагинов
Логотип мода

RitnBaseGame

Логотип мода

RitnMenuButton

Еще 3

Загрузить 505.6 KB