Example #1
0
 public static void CloneTo(PlayerUnlockItem from, PlayerUnlockItem to)
 {
     to.Id       = from.Id;
     to.PlayerId = from.PlayerId;
     to.DataId   = from.DataId;
     to.Amount   = from.Amount;
 }
Example #2
0
    public PlayerUnlockItem Clone()
    {
        var result = new PlayerUnlockItem();

        CloneTo(this, result);
        return(result);
    }
Example #3
0
 public static void SetData(PlayerUnlockItem data)
 {
     if (data == null || string.IsNullOrEmpty(data.Id))
     {
         return;
     }
     DataMap[data.Id] = data;
 }
Example #4
0
 public static bool TryGetData(string dataId, out PlayerUnlockItem data)
 {
     return(TryGetData(IPlayer.CurrentPlayer.guid, dataId, out data));
 }
Example #5
0
 public static bool TryGetData(string playerId, string dataId, out PlayerUnlockItem data)
 {
     return(DataMap.TryGetValue(GetId(playerId, dataId), out data));
 }