proton:variants
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
proton:variants [2010/10/26 07:33] – created seth | proton:variants [2010/10/26 14:39] – seth | ||
---|---|---|---|
Line 35: | Line 35: | ||
Some code to see how they work: | Some code to see how they work: | ||
- | < | + | < |
// | // | ||
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()+" | ||
Line 101: | Line 101: | ||
In addition to setting and retrieving variant data by name, you can create and retrieve " | In addition to setting and retrieving variant data by name, you can create and retrieve " | ||
- | A function object (why do I call it this? confusing) | + | A function object (why do I call it this? confusing) |
In this way, you can sort of create labels that can be triggered easily, and these triggers can activate real functions that have been attached to them. | In this way, you can sort of create labels that can be triggered easily, and these triggers can activate real functions that have been attached to them. |
proton/variants.txt · Last modified: 2012/07/24 09:43 by aki