Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6273 in orxonox.OLD for branches/network/src/lib/network/converter.h


Ignore:
Timestamp:
Dec 23, 2005, 5:30:22 PM (18 years ago)
Author:
rennerc
Message:

converter: added functions for strings
network_protocol: length and id are now int
network_game_manager: fixed some more bugs :D
skybox: is loaded on client corectly now :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/converter.h

    r6229 r6273  
    3232    static int floatToByteArray(float x, byte* a, int length);
    3333    static int byteArrayToFloat(const byte* a, float* x);
    34    
     34
     35    static int stringToByteArray(const char* s, byte* a, int length, int maxLength);
     36    static int byteArrayToString(const byte* a, char* s, int maxLength);
     37
    3538    //Test
    3639    static char* floatToBinString(float x);
Note: See TracChangeset for help on using the changeset viewer.