Space Engineers

Space Engineers

EasyAPI
Affichage des entrées 1-10 sur 58
< 1  2  3  4  5  6 >
Mis à jour le : 6 nov. 2018 à 18h18

Fixed compile error in latest version.

Mis à jour le : 26 janv. 2018 à 1h07

Fixed most of the problems so it works in the new version of SE.

Mis à jour le : 4 nov. 2016 à 22h45

Fixed compiler warnings.

Mis à jour le : 31 oct. 2016 à 18h56

Merged pull request from github to fix issue where it was broken after the last update.

Mis à jour le : 11 juin 2016 à 16h53

Make EasyBlocks.Blocks public so it is easier to exend.

Mis à jour le : 14 mai 2016 à 9h09

Added SetFloatValue(string property, float value) function to easyblocks and easyblock classes.

Mis à jour le : 26 mars 2016 à 13h00

Fixed bug that caused an error about accessing an invalid index in a string.

Mis à jour le : 18 mars 2016 à 17h34

New optional parameter added to AddEvent function which changes when events are triggered. The parameter is called onChange, and when set to true it makes the event only get triggered when the condition goes from false to true.

Mis à jour le : 17 mars 2016 à 17h38

Added "AddEvent" method to EasyBlock and EasyBlocks classes.

Example of use to trigger event when door opens/closes:

public class Example : EasyAPI { public Example(IMyGridTerminalSystem grid, IMyProgrammableBlock me, Action<string> echo, TimeSpan elapsedTime) : base(grid, me, echo, elapsedTime) { Blocks.OfTypeLike("Door").AddEvent( delegate(EasyBlock block) { return block.Open(); }, doorOpened ); } public bool doorOpened(EasyBlock door) { // Do something when door is opened door.AddEvent( delegate(EasyBlock block) { return !block.Open(); }, doorClosed ); return false; } public bool doorClosed(EasyBlock door) { // Do something when door is closed door.AddEvent( delegate(EasyBlock block) { return block.Open(); }, doorOpened ); return false; } }

Mis à jour le : 17 mars 2016 à 16h42

Plus and Minus operators and functions now support single blocks (EasyBlock) and not just block sets (EasyBlocks)