﻿// Decompiled with JetBrains decompiler
// Type: Wb.Lpw.Platform.Protocol.RecordEvents.Store.LPWEventExitStore
// 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.Store
{
  public class LPWEventExitStore : RecordingEventBase
  {
    public static bool GrsEnabled = true;
    private int _activitysessionid;
    private int _areasessionid;
    private DateTime _createdatetime;
    private int _goldenbricksoh;
    private int _level;
    private int _storesessionid;
    private int _studsoh;

    public LPWEventExitStore(int ActivitySessionID, int AreaSessionID, DateTime CreateDateTime, int GameSessionID, int GoldenBricksOH, int Level, long PlayerID, int StoreSessionID, int StudsOH)
      : base(false, 113, "")
    {
      this._activitysessionid = ActivitySessionID;
      this._areasessionid = AreaSessionID;
      this._createdatetime = CreateDateTime;
      this._SessionId = GameSessionID;
      this._goldenbricksoh = GoldenBricksOH;
      this._level = Level;
      this._PlayerId = PlayerID;
      this._storesessionid = StoreSessionID;
      this._studsoh = StudsOH;
    }

    public override bool IsGrsEnabled()
    {
      return LPWEventExitStore.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("GoldenBricksOH", (object) this._goldenbricksoh);
      visitor.Accept("Level", (object) this._level);
      visitor.Accept("PlayerID", (object) this._PlayerId);
      visitor.Accept("StoreSessionID", (object) this._storesessionid);
      visitor.Accept("StudsOH", (object) this._studsoh);
    }

    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) LPWEventExitStore.GrsEnabled.ToString()
      }) + " ActivitySessionID=" + this._activitysessionid.ToString() + " AreaSessionID=" + this._areasessionid.ToString() + " CreateDateTime=" + this._createdatetime.ToString() + " GameSessionID=" + this._SessionId.ToString() + " GoldenBricksOH=" + this._goldenbricksoh.ToString() + " Level=" + this._level.ToString() + " PlayerID=" + this._PlayerId.ToString() + " StoreSessionID=" + this._storesessionid.ToString() + " StudsOH=" + this._studsoh.ToString();
    }
  }
}
