예제 #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;
 }
예제 #2
0
    public PlayerUnlockItem Clone()
    {
        var result = new PlayerUnlockItem();

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