proton:variants
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proton:variants [2010/10/26 14:24] – seth | proton:variants [2012/07/24 09:43] (current) – 6 members in a VariantList nowadays aki | ||
---|---|---|---|
Line 35: | Line 35: | ||
Some code to see how they work: | Some code to see how they work: | ||
- | < | + | < |
// | // | ||
Line 59: | Line 59: | ||
</ | </ | ||
- | Caveat: Currently it will assert if you try to use more than 4 variables in a single VariantList. For speed, I don't dynamically allocate them as needed. | + | Caveat: Currently it will assert if you try to use more than 6 variables in a single VariantList. For speed, I don't dynamically allocate them as needed. |
====VariantDB==== | ====VariantDB==== | ||
A VariantDB is exactly what it sounds like. A key/data database of variants! | A VariantDB is exactly what it sounds like. A key/data database of variants! | ||
Line 67: | Line 67: | ||
Example: | Example: | ||
- | < | + | < |
VariantDB db; | VariantDB db; | ||
Line 81: | Line 81: | ||
You can also save and load them, making them perfect for keeping track of game settings. | You can also save and load them, making them perfect for keeping track of game settings. | ||
- | < | + | < |
db.Save(GetSavePath()+" | db.Save(GetSavePath()+" | ||
proton/variants.1288103062.txt.gz · Last modified: 2010/10/26 14:24 by seth