﻿namespace JLGames.RocketDriver.Games.RpgMaterial.Common
{
    public class UserData : IUserData
    {
        protected int m_Type;
        protected int m_Id;
        protected int m_UId;
        protected int m_Num;


        public int Type => m_Type;
        public int Id => m_Id;
        public int UId => m_UId;
        public int Num => m_Num;

        public override string ToString()
        {
            return $"{{Type={Type},Id={Id},UId={UId},Num={Num}}}";
        }

        public void SetType(int type)
        {
            m_Type = type;
        }

        public void SetId(int id)
        {
            m_Id = id;
        }
        
        public void SetUId(int uId)
        {
            m_UId = uId;
        }

        public void SetNum(int num)
        {
            m_Num = num;
        }
    }
}