bonkmaykr on Nostr: @Coyote@social.singing.dog I'm using pointers, the vector is type "vector< ...
@Coyote@social.singing.dog I'm using pointers, the vector is type "vector< o_worldObjectGeneric* >" and all objects are created with the new keyword, something like;
simulation->w_content.push_back(new o_bulletGeneric());
Published at
2025-01-20 21:54:20Event JSON
{
"id": "d5f651a84233afb4fa8241d96214b6977bac2fa60e4fb7190b89fd3fa1478795",
"pubkey": "79e734708024766adafaed0415edfb6b5a9842c825d85d15021eeab49eafb4f9",
"created_at": 1737410060,
"kind": 1,
"tags": [
[
"p",
"778c5d9cdc5ff2220b7cf37c769c8815b50686784f38d81e50129d3758e9a29a",
"wss://relay.mostr.pub"
],
[
"e",
"96a522d7220d94a44ebb11e80d279bb8596a367633e4538d4414281e78444f0c",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://canithesis.org/ap/bonkmaykr/p/1737410060.024685",
"activitypub"
]
],
"content": "@Coyote@social.singing.dog I'm using pointers, the vector is type \"vector\u003c o_worldObjectGeneric* \u003e\" and all objects are created with the new keyword, something like;\n\nsimulation-\u003ew_content.push_back(new o_bulletGeneric());\n",
"sig": "5625d26dc1ad85fb475ae2f0dacc67828393ae9053a8d623a8b0d97a7100c8f9141efc3d2f6109ad4d198233d0d194983a12d761c982086f74175a72c7995f9f"
}