Space Engineers

Space Engineers

EasyAPI
正在显示第 1 - 10 项,共 58 项条目
< 1  2  3  4  5  6 >
更新于:2018 年 11 月 6 日 下午 6:18

Fixed compile error in latest version.

更新于:2018 年 1 月 26 日 上午 1:07

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

更新于:2016 年 11 月 4 日 下午 10:45

Fixed compiler warnings.

更新于:2016 年 10 月 31 日 下午 6:56

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

更新于:2016 年 6 月 11 日 下午 4:53

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

更新于:2016 年 5 月 14 日 上午 9:09

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

更新于:2016 年 3 月 26 日 下午 1:00

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

更新于:2016 年 3 月 18 日 下午 5:34

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.

更新于:2016 年 3 月 17 日 下午 5:38

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

更新于:2016 年 3 月 17 日 下午 4:42

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