Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 4:48:16 PM (18 years ago)
Author:
snellen
Message:

made FPSPlayer scriptable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/creatures/fps_player.cc

    r8776 r8869  
    3535
    3636CREATE_FACTORY(FPSPlayer, CL_FPS_PLAYER);
     37
     38#include "script_class.h"
     39CREATE_SCRIPTABLE_CLASS(FPSPlayer, CL_FPS_PLAYER,
     40                        addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     41                            ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     42                            ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     43                            ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     44                       );
    3745
    3846
Note: See TracChangeset for help on using the changeset viewer.