6 ms·
In a past job I implemented these with heavy use of C++ operator overrides. Not the prettiest option, but it stopped the six id/index types I was using from acc
by a_t48 2y ago
In a past job I implemented these with heavy use of C++ operator overrides. Not the prettiest option, but it stopped the six id/index types I was using from accidentally getting misused. Something like - ObjectId, Resource Id, User Id, Group Index, some other things. This was for the ingame handling for https://store.sansar.com/ https://store.sansar.com/ - it's a pity the project kind of died, we had some neat ideas for payment for providence. The idea thrown around was that "if I make some wheels and put them on the marketplace, you can make a car, sell it, and I'd get a cut of every car sale". This was of course, ignoring the "analog hole" of someone figuring out how to export/reimport your asset.