Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra 2 / Rising Storm > RO2/RS Modifications > Coding

Thread Tools Display Modes
Old 05-04-2012, 12:02 PM
-=THOR=-'s Avatar
-=THOR=- -=THOR=- is offline
Senior Member
Join Date: Sep 2011
Posts: 1,050
Default String Representation of a struct


How do I get the string representation of a struct, like it is done for the ini variables? I mean, if I want to log a complex struct, is there a method that can can translate a struct variable into a string, like:

str = GetStringRepresentation(Engine.StatColorMappings);

str value:
(StatName="Streaming fudge factor",ColorMap=((In=0.000000,Out=(B=0,G=255,R=0, A=0)),(In=1.000000,Out=(B=0,G=255,R=0,A=0)),(In=2. 500000,Out=(B=0,G=255,R=255,A=0)),(In=5.000000,Out =(B=0,G=0,R=255,A=0)),(In=10.000000,Out=(B=0,G=0,R =255,A=0))),DisableBlend=False)
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 04:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2016, Tripwire Interactive, LLC