2021-04-20 13:58:00 +08:00
|
|
|
PlayerSetTitleRideSkinManager = {};
|
2020-05-09 13:31:21 +08:00
|
|
|
local this = PlayerSetTitleRideSkinManager
|
|
|
|
|
|
|
|
function this.Initialize()
|
2021-11-02 16:42:36 +08:00
|
|
|
this.NewRide = {}
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
2021-11-02 16:42:36 +08:00
|
|
|
-- 设置刚刚获取到的坐骑是新的,
|
|
|
|
function this.SetNewRide(rideId)
|
|
|
|
this.NewRide[rideId] = 1
|
|
|
|
end
|
|
|
|
-- 查看后设置为旧的
|
|
|
|
function this.SetOldRide(rideId)
|
|
|
|
this.NewRide[rideId] = 0
|
|
|
|
end
|
|
|
|
-- 查看后设置为旧的
|
|
|
|
function this.SetAllOldRide()
|
|
|
|
for rideId, isNew in pairs(this.NewRide) do
|
|
|
|
this.NewRide[rideId] = 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
-- 获取一个新坐骑
|
|
|
|
function this.GetNewRide()
|
|
|
|
local newRideId = nil
|
|
|
|
for rideId, isNew in pairs(this.NewRide) do
|
|
|
|
if isNew == 1 then
|
|
|
|
if not newRideId or newRideId > rideId then
|
|
|
|
newRideId = rideId
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return newRideId
|
2020-05-09 13:31:21 +08:00
|
|
|
end
|
|
|
|
|
2020-06-23 18:36:24 +08:00
|
|
|
return this
|