Best way to store 3 pieces of data as a single entry

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-30T03:25:19Z Indexed on 2010/03/30 3:33 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

For a game server, I want to record details when a player makes a kill, store this, and then at intervals update to a sql database.

The part i'm interested in right now is the best method of storing the kill information. What i'd like to pass to the sql server on update would be {PlayerName, Kills, Deaths}, where the kills and deaths are a sum for the period between updates.

So i'm assuming i'd build a list along the lines of {bob, 1, 0} {frank, 0, 1} {tom, 1, 0} {frank, 0, 1} then on update, consolidate the list to {frank, 14, 3}etc

Can someone offer some advice please?

© Stack Overflow or respective owner

Related posts about c#

Related posts about list