Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3XXXLOlympic GamesXXL EditorToolsOff-TopicXXL RomasteredXXL 2 RemasteredOther GamesModsCaesar's ChallengeUnfair XXLPatchesFan ArtPersonal ArtSpeedrunningMediaRandomizerBETA RomeHSKALPresence AdrienPresence SPQRSupport Bot Helpdesk

#editor

adrientd
And **RwTeam** assigns a node to a geometry in the dictionary
pegperegogaucho
so; add new reference to **_clones** -> append new **Dong** in **RwTeam** and then do what with the **RwTeamDictionary ** exactly?
adrientd
You do nothing with RwTeamDictionary
adrientd
unless you want to add new kind of geometry
adrientd
unless you want to add new kind of geometry
pegperegogaucho
no no no no, enough bing bangs bong ding dong dangs and fings for now :monkaINSANE:
adrientd
bing bing bong bong
pegperegogaucho
https://www.youtube.com/watch?v=k85mRPqvMbE
pegperegogaucho
:dankJAM:
pegperegogaucho
@adrientd when i build this, i get error "binary '==': no operator found which takes a left-hand operand of type 'kobjref' (or there is no acceptable conversion)" do you know of any other method of getting the position of something in an array?:PauseChamp:
adrientd
Yeah, kobjref has no comparison operator with pointers, only with itself.
adrientd
Maybe try this: `std::find_if(clm->_clones.begin(), clm->_clones.end(), [oaclone1](kobjref &ref) {return ref.get() == oaclone1;});`
adrientd
Another simplier solution would be to create temporarily a kobjref, like that: `std::find(clm->_clones.begin(), clm->_clones.end(), kobjref(oaclone1));`
adrientd
But that might cause a reference count increase and decrease for nothing (even tho performance is not priority).
pegperegogaucho
:PogYou:
pegperegogaucho
what do you think about the approach?
pegperegogaucho
i guess since _clones and dongs are the same size, there is one dong for each _clone in the same order?
adrientd
Yes, it should be in the same order
adrientd
That's the best approach of course
pegperegogaucho
:CoolChamp:👍