Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2008, 12:55:41 AM (16 years ago)
Author:
landauf
Message:

added support for Vector4 to MultiTypeMath and added a new function called 'assimilate' that converts the stored value of a given MultiType to it's own type and assigns it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/util/MultiTypeString.cc

    r1064 r1319  
    136136}
    137137
     138void MultiTypeString::assimilate(const MultiTypeString& mts)
     139{
     140    if (this->type_ == MT_constchar)
     141        this->string_ = mts.toString();
     142    else if (this->type_ == MT_string)
     143        this->string_ = mts.toString();
     144    else
     145        MultiTypePrimitive::assimilate(mts);
     146}
     147
    138148std::ostream& operator<<(std::ostream& out, MultiTypeString& mts)
    139149{
Note: See TracChangeset for help on using the changeset viewer.