Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: klept on February 28, 2013, 05:15:23 AM

Title: No support for signed bytes?
Post by: klept on February 28, 2013, 05:15:23 AM
Hey! I realized there is no support for signed bytes, I added these lines to the TNUnityTools.cs

  1. Line 209:
  2.                         else if (type == typeof(sbyte))
  3.                         {
  4.                                 sbyte sb = (sbyte)obj;
  5.                                 bw.Write('p');
  6.                                 bw.Write(sb);
  7.                         }
  8. ...........
  9.  
  10. Line 310:
  11. case 'p': data[i] = reader.ReadSByte(); break;
  12.  

I think this could be a "bug", maybe you forgot to put them!
Title: Re: No support for signed bytes?
Post by: ArenMook on February 28, 2013, 01:23:22 PM
Can't say I've ever used them, which is the main reason I never added them. :)