private static void ApplyMap(IMyCubeBlock block, ASync.Id id, string value) { ASync sync; if (!ASync.TryGet(id, out sync)) { Logger.AlwaysLog("Failed to get TerminalSync for " + id, Logger.severity.ERROR); } else { Logger.TraceLog("Setting entity value for " + block.nameWithId() + ", value id: " + id + ", value: " + value); sync.SetValueFromSave(block.EntityId, value); } }
public SimpleMapping(Type BlockType, byte EntityValueId, ASync.Id TerminalSyncId) : base(BlockType, EntityValueId) { this.TerminalSyncId = TerminalSyncId; }