Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2008, 11:08:46 PM (16 years ago)
Author:
scheusso
Message:

we are now able to define callback actions, for each seperate variable of a synchronisable, that has changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Synchronisable.h

    r1505 r1521  
    2727 */
    2828
    29 //
    30 // C++ Interface: synchronisable
    31 //
    32 // Description:
    33 //
    34 //
    35 // Author:  Oliver Scheuss, (C) 2007
    36 //
    37 // Copyright: See COPYING file that comes with this distribution
    38 //
    39 //
    4029#ifndef _Synchronisable_H__
    4130#define _Synchronisable_H__
     
    4534#include <list>
    4635#include "core/OrxonoxClass.h"
     36#include "NetworkCallback.h"
    4737
    4838namespace network
     
    6555    void *var;
    6656    variableType type;
     57    NetworkCallbackBase *callback;
    6758  }SYNCVAR;
    6859
     
    8172    int classID;
    8273
    83     void registerVar(void *var, int size, variableType t, int mode=1);
     74    void registerVar(void *var, int size, variableType t, int mode=1, NetworkCallbackBase *cb=0);
    8475    //  syncData getData();
    8576    syncData getData(unsigned char *mem, int mode=0x0);
Note: See TracChangeset for help on using the changeset viewer.