Skip to content
Snippets Groups Projects
  • Loïc Blot's avatar
    8bcd10b8
    Player/LocalPlayer/RemotePlayer inheritance cleanup (part 1 on X) · 8bcd10b8
    Loïc Blot authored
    * LocalPlayer take ownership of maxHudId as it's the only caller
    * RemotePlayer take ownership of day night ratio as it's the only user
    * Pass getPlayerControl as const reference to prevent object copy on each call (perf improvement in ObjectRef::l_get_player_control call)
    * getPlayerSAO is now only RemotePlayer call
    * get/setHotbarItemCount is now RemotePlayer owned
    * Server: Use RemotePlayer instead of Player object on concerned call to properly fix the object type
    * PlayerSAO now uses RemotePlayer instead of Player because it's only server side
    * ObjectRef::getplayer also returns RemotePlayer as it's linked with PlayerSAO
    8bcd10b8
    History
    Player/LocalPlayer/RemotePlayer inheritance cleanup (part 1 on X)
    Loïc Blot authored
    * LocalPlayer take ownership of maxHudId as it's the only caller
    * RemotePlayer take ownership of day night ratio as it's the only user
    * Pass getPlayerControl as const reference to prevent object copy on each call (perf improvement in ObjectRef::l_get_player_control call)
    * getPlayerSAO is now only RemotePlayer call
    * get/setHotbarItemCount is now RemotePlayer owned
    * Server: Use RemotePlayer instead of Player object on concerned call to properly fix the object type
    * PlayerSAO now uses RemotePlayer instead of Player because it's only server side
    * ObjectRef::getplayer also returns RemotePlayer as it's linked with PlayerSAO
game.cpp 127.16 KiB