protected override void ConcealQueued(long entityId) { Notification notice = new AlertNotification() { Text = "Conceal queued for entity " + entityId }; notice.Raise(); }
//System.IO.TextWriter TextWriter; //SEGarden.Files.TextHandler TextFileHandler; public override void LoadData() { base.LoadData(); Logger = new SEGarden.Logging.Logger("GardenWarfare.Components"); /* Logger.info("Starting", "Init"); * */ CommandProcesor = new Commands.Processor(); CommandProcesor.LoadData(); testNotice = new AlertNotification() { Text = "Testing, testing, 1 2 3" }; }
/* public override void Init(MyObjectBuilder_SessionComponent sessionComponent) { base.Init(sessionComponent); } * */ public override void UpdateBeforeSimulation() { base.UpdateBeforeSimulation(); AlertNotification testNotice1; Frame++; if (Frame % 100 == 0) { /* if (TextWriter == null) { TextWriter = MyAPIGateway.Utilities.WriteFileInLocalStorage("pooptallk.txt", typeof(AlertNotification)); } if (TextFileHandler == null) { TextFileHandler = new SEGarden.Files.TextHandler("ponaniponani.txt"); } * * */ try { //Logger.info("Update frame " + Frame, "Init"); //TextWriter.WriteLine("POOOOOOOP"); //TextWriter.Flush(); //TextFileHandler.WriteLine("pooooop"); Logger.Info("jelly", "updatePoop"); testNotice1 = new AlertNotification() { Text = "Successfully logged - Warfare" }; testNotice1.Raise(); } catch (Exception e) { testNotice1 = new AlertNotification() { Text = "Exception: " + e.ToString() }; testNotice1.Raise(); } /* AlertNotification testNotice1 = new AlertNotification() { Text = "CommandProcessor null? " + (CommandProcesor == null).ToString() }; AlertNotification testNotice2 = new AlertNotification() { Text = "Testing, testing, 1 2 3 - " + Frame + " test notice null? " + (testNotice == null).ToString() }; AlertNotification testNotice3 = new AlertNotification() { Text = "Logger null? " + (Logger == null).ToString() }; testNotice1.Raise(); testNotice2.Raise(); testNotice3.Raise(); * */ } //if (m_CoreProcessor == null) // startCore(); //m_CoreProcessor.updateBeforeSimulation(); }