public override string GetDescription(EventInstanceBase ev) { CellEventInstance cellEventInstance = ev as CellEventInstance; SimHashes data = (SimHashes)cellEventInstance.data; return(GetMessagePrefix() + "Element=" + data.ToString() + ", Mass=" + (float)cellEventInstance.data2 / 1000f + " (" + reason + ")"); }
public void Log(int cell, SimHashes element, float amount, int callback_id) { if (enableLogging) { CellEventInstance ev = new CellEventInstance(cell, (int)element, (int)(amount * 1000f), this); CellEventLogger.Instance.Add(ev); } }
public void Log(int cell, int callback_id) { if (enableLogging) { CellEventInstance ev = new CellEventInstance(cell, 0, 0, this); CellEventLogger.Instance.Add(ev); } }
public void Log(int cell, bool solid) { if (enableLogging) { CellEventInstance ev = new CellEventInstance(cell, solid ? 1 : 0, 0, this); CellEventLogger.Instance.Add(ev); } }
public override string GetDescription(EventInstanceBase ev) { CellEventInstance cellEventInstance = ev as CellEventInstance; if (cellEventInstance.data == 1) { return(GetMessagePrefix() + "Solid=true (" + reason + ")"); } return(GetMessagePrefix() + "Solid=false (" + reason + ")"); }
public override string GetDescription(EventInstanceBase ev) { CellEventInstance cellEventInstance = ev as CellEventInstance; return(GetMessagePrefix() + "Filtered Solid Event solid=" + cellEventInstance.data.ToString()); }
public override string GetDescription(EventInstanceBase ev) { CellEventInstance cellEventInstance = ev as CellEventInstance; return(GetMessagePrefix() + "Callback=" + cellEventInstance.data.ToString()); }