Space Engineers
EasyAPI
Показані результати 21–30 із 58
< 1  2  3  4  5  6 >
Оновлено: 23 лют. 2016 о 23:38

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

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

Оновлено: 22 лют. 2016 о 20:27

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

Оновлено: 21 лют. 2016 о 15:21

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]); } });

Оновлено: 21 лют. 2016 о 15:19

Оновлено: 21 лют. 2016 о 14:34

Оновлено: 11 груд. 2015 о 23:45

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

Оновлено: 17 лип. 2015 о 22:03

Merged from jkeywo on GitHub:

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

Оновлено: 16 лип. 2015 о 21:35

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

Оновлено: 16 трав. 2015 о 11:16

Оновлено: 16 трав. 2015 о 0:20