#It does because soon Im going to

1 messages · Page 1 of 1 (latest)

cold marsh
#

It's a multiplayer database? It wouldn't make sense to have duplicate data (whether the skin can be bought with currency or with real money) on each player's entry so you'd wanna have two tables and two dictionaries for clarity

pastel ruin
#

No, It will be a 2D endless runner like SubwaySurfers or jetpack Joyride . The player will own skins , highscore, a name for the leaderboard and some other cosmetics

cold marsh
#

if it is singleplayer then your dictionary is your DB and you can do it both ways

pastel ruin
#

So technically you are suggesting to hold the following

  1. A Dict with key:SkinNme value: (bool) true/false value of ownership
  2. A Dict with key:SkinName value: (int) in-gameCurrency
  3. A Dict with key:SkinName value: (float) Euro?Dollars

Then I can just save the 1) in the online DB for the player to have cross-device memory of their skins and the others ( 2) & 3) ) will change with each update , adding new skins etc..

cold marsh
#

you can combine 2 and 3;
1 might have issues with compatibility between versions because the new keys won't exist in new version, you could just have a list of item keys the player owns, e.g list(1,3,5) corresponding to player owning first, third, fifth skin but both approaches work.

pastel ruin
#

How would you suggest to combine 2-3. What will make difference between 1000Coins and 1.99Euro

You think that expanding the OnlineDB will be a burden?

cold marsh
#

How would you suggest to combine 2-3
Dictionary with SkinName, gameCurrency, realCurrency?

pastel ruin
#

Can you have a dict with 2 values? Lmao

#

Im such a noob

pastel ruin
#

Can you explain this

cold marsh
pastel ruin
#
using System;

[Serializable]
public class Skin

{
    string ID;
    string label;
    string type;
    bool ownerShip;
    int inGameCurrencyPrice;
    float realWorldCurrencyPrice;
}

How about I use a Dict containing values with objects like these.
Then I will only need one dict

cold marsh
pastel ruin
#

Hmmm but can I save in a DB a Dict<string,GameObject> ? :/
Its not that much space i think

cold marsh
pastel ruin
#

its not based on some index

cold marsh