electronicarts / CnC_Remastered_Collection

Other
18.31k stars 4.74k forks source link

Looking for method which handles selection of builindgs #86

Open wetswan opened 4 years ago

wetswan commented 4 years ago

Hi, I'm trying to get an overview and wanted to start with something simple that should happen when a building is selected (just for testing). So far I have been unable to find the method/routine that handles selection of builindgs. Could anybody please point me in the right direction?

believer-ufa commented 4 years ago

I suppose there is the current "select object" logic :)

https://github.com/electronicarts/CnC_Remastered_Collection/blob/fc5cd5a7751e61e6805c3a6834f4ac279e22ce92/REDALERT/OBJECT.CPP#L1209-L1283

But i can be wrong because i'm not a c++ dev actually. Just also researching source code )

believer-ufa commented 4 years ago

Or this one:

https://github.com/electronicarts/CnC_Remastered_Collection/blob/fc5cd5a7751e61e6805c3a6834f4ac279e22ce92/REDALERT/TECHNO.CPP#L2709-L2744

wetswan commented 4 years ago

Thanks, good points. Will check those :) Still digging through it, would be great if there was some more documentation besides the code comments.