public static void CloneTo(PlayerUnlockItem from, PlayerUnlockItem to) { to.Id = from.Id; to.PlayerId = from.PlayerId; to.DataId = from.DataId; to.Amount = from.Amount; }
public PlayerUnlockItem Clone() { var result = new PlayerUnlockItem(); CloneTo(this, result); return(result); }
public static void SetData(PlayerUnlockItem data) { if (data == null || string.IsNullOrEmpty(data.Id)) { return; } DataMap[data.Id] = data; }
public static bool TryGetData(string dataId, out PlayerUnlockItem data) { return(TryGetData(IPlayer.CurrentPlayer.guid, dataId, out data)); }
public static bool TryGetData(string playerId, string dataId, out PlayerUnlockItem data) { return(DataMap.TryGetValue(GetId(playerId, dataId), out data)); }