﻿// Decompiled with JetBrains decompiler
// Type: Wb.Lpw.Platform.Protocol.RecordEvents.LevelsAndDomain.LPWEventLevelUp
// Assembly: Wb.Lpw.Protocol, Version=2.13.83.0, Culture=neutral, PublicKeyToken=null
// MVID: A621984F-C936-438B-B744-D121BF336087
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\Wb.Lpw.Protocol.dll

using System;
using Wb.Lpw.Platform.Protocol.RecordEvents;

namespace Wb.Lpw.Platform.Protocol.RecordEvents.LevelsAndDomain
{
  public class LPWEventLevelUp : RecordingEventBase
  {
    public static bool GrsEnabled = true;
    private int _activitysessionid;
    private int _areasessionid;
    private DateTime _createdatetime;
    private int _level;
    private long _pid;
    private float _playtime;

    public LPWEventLevelUp(int ActivitySessionID, int AreaSessionID, DateTime CreateDateTime, int GameSessionID, int Level, long PID, float Playtime)
      : base(false, 124, "")
    {
      this._activitysessionid = ActivitySessionID;
      this._areasessionid = AreaSessionID;
      this._createdatetime = CreateDateTime;
      this._SessionId = GameSessionID;
      this._level = Level;
      this._pid = PID;
      this._playtime = Playtime;
    }

    public override bool IsGrsEnabled()
    {
      return LPWEventLevelUp.GrsEnabled;
    }

    public override RecEventType GetRecordEventType()
    {
      return RecEventType.GRS;
    }

    public override void GetRecordingProperties(IRecordEventVisitor visitor)
    {
      visitor.Accept("ActivitySessionID", (object) this._activitysessionid);
      visitor.Accept("AreaSessionID", (object) this._areasessionid);
      visitor.Accept("CreateDateTime", (object) this._createdatetime);
      visitor.Accept("GameSessionID", (object) this._SessionId);
      visitor.Accept("Level", (object) this._level);
      visitor.Accept("PID", (object) this._pid);
      visitor.Accept("Playtime", (object) this._playtime);
    }

    public override void GetObject(IRecordObjectVisitor visitor, string objName)
    {
    }

    public override string ToString()
    {
      return string.Concat(new object[4]
      {
        (object) "DbId=",
        (object) this.DbId,
        (object) " IsGrsEnabled=",
        (object) LPWEventLevelUp.GrsEnabled.ToString()
      }) + " ActivitySessionID=" + this._activitysessionid.ToString() + " AreaSessionID=" + this._areasessionid.ToString() + " CreateDateTime=" + this._createdatetime.ToString() + " GameSessionID=" + this._SessionId.ToString() + " Level=" + this._level.ToString() + " PID=" + this._pid.ToString() + " Playtime=" + this._playtime.ToString();
    }
  }
}
