Home > other >  Questions about excel solution
Questions about excel solution

Time:09-24

Now there are at least 2000 excel

Two solutions:
1, maps the excel to the class, and then the class instantiation, save as a binary file, when entering the game directly the sequence words file to read data
Advantages: fast reading data
Weakness: when the class object, need a singleton class, singleton class stored in at least 2000 class object of key/value pair,

2, transfer excel to CSV, the CSV is saved as a binary file, after entering the game, read the CSV, resolved to response the class
Advantages: don't need a singleton class save all kind of key/value pair, can be directly obtained by the name of the class class,
Disadvantages: read data for the first time, need to parse a CSV,

Note: a class object is through key to save the data

If you you choose which kind of?

CodePudding user response:

One is
Why the singleton class?
Save as object, which will load which can be used to

CodePudding user response:

reference 1st floor shingoscar response:
one is
Why the singleton class?
Save as object, which will load which can be used to


Load also need time to preload some tables, in build engineering when the table data serialization to save directly to the quick and easy read, do not need to parse table in the game
  • Related