public PlayfieldScriptData(EmpyrionScripting parent) { Playfield_OnEntityLoaded = (IEntity entity) => AddEntity(entity); Playfield_OnEntityUnloaded = (IEntity entity) => RemoveEntity(entity); ScriptExecQueue = new ScriptExecQueue(D => parent.ProcessScript(this, D)); }
public ItemInfos(ConfigEcfAccess configAccess, Localization localization) { try { Localization = localization; ItemInfo = GetAllItems(configAccess).ToDictionary(I => I.Id, I => I); } catch (Exception error) { EmpyrionScripting.Log($"ReadAllItemData:{error}", EmpyrionNetAPIDefinitions.LogLevel.Error); } }