Пример #1
0
    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 + ")");
    }
Пример #2
0
 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());
    }
Пример #7
0
    public override string GetDescription(EventInstanceBase ev)
    {
        CellEventInstance cellEventInstance = ev as CellEventInstance;

        return(GetMessagePrefix() + "Callback=" + cellEventInstance.data.ToString());
    }