Space Engineers

Space Engineers

EasyAPI
Mostrando 21-30 de 58 aportaciones
< 1  2  3  4  5  6 >
Actualización: 23 FEB 2016 a las 11:38 p. m.

Minified EasyAPI library code! It now only takes up 30k characters instead of 54k.

Also changed the EasyCommands command to "EasyCommand" instead of "$"

Actualización: 22 FEB 2016 a las 8:27 p. m.

Added EasyCommands class which allows you to do simple commands with no programming by using arguments passed to the Programming Block.

"EasyCommand" is a special command argument which tells the programming block to execute an easyapi command. Documentation coming soon.

Some Examples:
"EasyCommand Blocks Off" - will shut off all blocks in your ship (including the programming block)
"EasyCommand Blocks ApplyAction Open" - toggle all doors open/close on your ship
'EasyCommand Blocks WritePublicText "Hello World!"' - Write "Hello World!" to all LCDs, and text terminals in public area.
"EasyCommand Blocks NamedLike Front OfTypeLike Door Open" open all doors with "Front" in their name

Actualización: 21 FEB 2016 a las 3:21 p. m.

Added OnCommand event function which acts like a main c function by parsing the command into argc (argument counts) and argv (arguments). Note that argv[0] is the command just like in a CLI C script.

If you have the following code and run a programming block with the arguments:

echo this "is something" new
then it will output:
this is something new

Code:
OnCommand("echo", delegate(int argc, string[] argv) { if(argc > 1) { for(int n = 1; n < argc; n++) Echo(argv[n]); } });

Actualización: 21 FEB 2016 a las 3:19 p. m.

Actualización: 21 FEB 2016 a las 2:34 p. m.

Actualización: 11 DIC 2015 a las 11:45 p. m.

Fix for generics bug. EasyEvent class is no longer generic.

Actualización: 17 JUL 2015 a las 10:03 p. m.

Merged from jkeywo on GitHub:

"Fixed On(string, Action) to work reliably."

Actualización: 16 JUL 2015 a las 9:35 p. m.

The latest space engineers update broke EasyAPI. This update fixed it.

Actualización: 16 MAY 2015 a las 11:16 a. m.

Actualización: 16 MAY 2015 a las 12:20 a. m.