|
|
|
@ -91,7 +91,8 @@ void Player::Init(LuaState &lua)
|
|
|
|
|
"cellStateSize", &Player::cellStateSize,
|
|
|
|
|
"addCellExplored", &Player::addCellExplored,
|
|
|
|
|
"setAuthority", &Player::setAuthority,
|
|
|
|
|
"customData", &Player::customData
|
|
|
|
|
"customData", &Player::customData,
|
|
|
|
|
"markedForDeletion", sol::property(&Player::isMarkedForDeleteion)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
lua.getState()->new_enum("ChannelAction",
|
|
|
|
@ -116,6 +117,7 @@ Player::Player(RakNet::RakNetGUID guid) : BasePlayer(guid), NetActor(), changedM
|
|
|
|
|
npcStats.blank();
|
|
|
|
|
creatureStats.blank();
|
|
|
|
|
charClass.blank();
|
|
|
|
|
markedForDeletion = false;
|
|
|
|
|
customData = mwmp::Networking::get().getState().getState()->create_table();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -807,3 +809,8 @@ void Player::setAuthority()
|
|
|
|
|
serverCell->sendToLoaded(authorityPacket, &writeActorList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Player::isMarkedForDeleteion() const
|
|
|
|
|
{
|
|
|
|
|
return markedForDeletion;
|
|
|
|
|
}
|
|
|
|
|