public void Main(string argument) { Echo("## START ##"); IMyTextPanel LCD = GridTerminalSystem.GetBlockWithName(argument) as IMyTextPanel; if (LCD != null) { string[] code = LCD.CustomData.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); BMyBaconDraw BD = new BMyBaconDraw(); BMyBaconDraw.BMyCanvas canvas = BD.run(code, this); LCD.WritePublicText(canvas.ToString()); LCD.ShowPublicTextOnScreen(); } else { Echo("-- LCD not found --"); } Echo("## END ##"); }
/** * BaconDrawV2 * ============== * Copyright 2016 Thomas Klose <*****@*****.**> * License: https://github.com/BaconFist/SpaceEngineersIngameScript/blob/master/LICENSE * * Description * =========== * */ public Program() { BaconDraw = new BMyBaconDraw(); }