(thetype)
| 52 | return classname.replace('vr::', 'VR::').replace('::', '_') + '_' + methodname |
| 53 | |
| 54 | def unmanagedtype(thetype): |
| 55 | if(thetype == 'float'): |
| 56 | return 'R4' |
| 57 | if(thetype == 'double'): |
| 58 | return 'R8' |
| 59 | if(thetype == 'char'): |
| 60 | return 'I1' |
| 61 | if(thetype == 'byte'): |
| 62 | return 'U1' |
| 63 | if(thetype == 'ulong'): |
| 64 | return 'U8' |
| 65 | if(thetype == 'uint'): |
| 66 | return 'U4' |
| 67 | if(thetype == 'CSteamID'): # Special case for CSteamID which is a complex C def but is 64-bits. |
| 68 | return 'U8' |
| 69 | return 'Struct' |
| 70 | |
| 71 | def ctype(thetype): |
| 72 | thetype = thetype.replace('vr::','') |
no outgoing calls
no test coverage detected