From 7ff72c7887d4a11eef1b4c291920d126768aa934 Mon Sep 17 00:00:00 2001 From: AURUMVORXX Date: Tue, 15 Apr 2025 13:13:31 +0300 Subject: [PATCH] docs: Updated docs for 2.0.0 version --- .github/workflows/docs_pages.yml | 1 - .github/workflows/release.yml | 92 ------------------- README.md | 5 +- docs/classes/game/Daedalus.md | 3 + docs/classes/game/DamageDescription.md | 3 + docs/classes/game/Sky.md | 3 + docs/classes/item/ItemGround.md | 3 + docs/classes/item/ItemsGround.md | 3 + docs/classes/mds/Mds.md | 3 + {python/docs => docs}/comparing.md | 62 +++++++------ {python/docs => docs}/constants/anticheat.md | 0 {python/docs => docs}/constants/context.md | 0 {python/docs => docs}/constants/damage.md | 0 {python/docs => docs}/constants/general.md | 0 {python/docs => docs}/constants/hand.md | 0 {python/docs => docs}/constants/item.md | 0 {python/docs => docs}/constants/network.md | 0 {python/docs => docs}/constants/npc.md | 0 .../docs => docs}/constants/reliability.md | 0 .../docs => docs}/constants/skill-weapon.md | 0 {python/docs => docs}/constants/talent.md | 0 .../docs => docs}/constants/weapon-mode.md | 0 {python/docs => docs}/constants/weather.md | 0 .../anticheat/onPlayerUseCheat.md | 8 +- .../defaultEvents/general/onBan.md | 10 +- .../defaultEvents/general/onExit.md | 4 +- .../defaultEvents/general/onInit.md | 4 +- .../defaultEvents/general/onTick.md | 4 +- .../defaultEvents/general/onTime.md | 9 +- .../defaultEvents/general/onUnban.md | 6 +- .../defaultEvents/npc/onNpcActionFinished.md | 6 +- .../defaultEvents/npc/onNpcActionSent.md | 6 +- .../npc/onNpcChangeHostPlayer.md | 6 +- .../defaultEvents/npc/onNpcCreated.md | 6 +- .../defaultEvents/npc/onNpcDestroyed.md | 6 +- .../player/onPlayerChangeColor.md | 11 +-- .../player/onPlayerChangeFocus.md | 11 +-- .../player/onPlayerChangeHealth.md | 10 +- .../player/onPlayerChangeMana.md | 10 +- .../player/onPlayerChangeMaxHealth.md | 10 +- .../player/onPlayerChangeMaxMana.md | 10 +- .../player/onPlayerChangeWeaponMode.md | 19 ++++ .../player/onPlayerChangeWorld.md | 6 +- .../defaultEvents/player/onPlayerCommand.md | 8 +- .../defaultEvents/player/onPlayerDamage.md | 7 +- .../defaultEvents/player/onPlayerDead.md | 6 +- .../player/onPlayerDisconnect.md | 6 +- .../defaultEvents/player/onPlayerDropItem.md | 7 +- .../player/onPlayerEnterWorld.md | 6 +- .../player/onPlayerEquipAmulet.md | 6 +- .../player/onPlayerEquipArmor.md | 6 +- .../defaultEvents/player/onPlayerEquipBelt.md | 6 +- .../player/onPlayerEquipHandItem.md | 6 +- .../player/onPlayerEquipHelmet.md | 6 +- .../player/onPlayerEquipMeleeWeapon.md | 6 +- .../player/onPlayerEquipRangedWeapon.md | 6 +- .../defaultEvents/player/onPlayerEquipRing.md | 6 +- .../player/onPlayerEquipShield.md | 6 +- .../player/onPlayerEquipSpell.md | 6 +- .../defaultEvents/player/onPlayerJoin.md | 6 +- .../defaultEvents/player/onPlayerMessage.md | 6 +- .../player/onPlayerMobInteract.md | 8 +- .../defaultEvents/player/onPlayerRespawn.md | 6 +- .../defaultEvents/player/onPlayerShoot.md | 6 +- .../defaultEvents/player/onPlayerSpellCast.md | 6 +- .../player/onPlayerSpellSetup.md | 6 +- .../defaultEvents/player/onPlayerTakeItem.md | 7 +- .../defaultEvents/player/onPlayerTeleport.md | 6 +- .../player/onPlayerToggleFaceAni.md | 6 +- docs/functions/chat/sendMessageToAll.md | 2 + docs/functions/chat/sendMessageToPlayer.md | 2 + docs/functions/chat/sendPlayerMessageToAll.md | 2 + .../chat/sendPlayerMessageToPlayer.md | 2 + docs/functions/event/addEvent.md | 2 + docs/functions/event/callEvent.md | 2 + docs/functions/event/event.md | 2 + docs/functions/event/removeEvent.md | 2 + docs/functions/event/removeEventHandler.md | 2 + docs/functions/event/toggleEvent.md | 2 + docs/functions/game/exit.md | 2 + docs/functions/game/getDayLength.md | 2 + docs/functions/game/getHostname.md | 2 + docs/functions/game/getMaxSlots.md | 2 + docs/functions/game/getPlayersCount.md | 2 + docs/functions/game/getServerDescription.md | 2 + docs/functions/game/getServerWorld.md | 2 + docs/functions/game/getTime.md | 2 + docs/functions/game/serverLog.md | 2 + docs/functions/game/setDayLength.md | 2 + docs/functions/game/setServerDescription.md | 2 + docs/functions/game/setServerWorld.md | 2 + docs/functions/game/setTime.md | 2 + docs/functions/npc/clearNpcActions.md | 2 + docs/functions/npc/createNpc.md | 2 + docs/functions/npc/destroyNpc.md | 2 + docs/functions/npc/getNpcAction.md | 2 + docs/functions/npc/getNpcActions.md | 2 + docs/functions/npc/getNpcActionsCount.md | 2 + docs/functions/npc/getNpcHostPlayer.md | 2 + docs/functions/npc/getNpcLastActionId.md | 2 + docs/functions/npc/isNpc.md | 2 + docs/functions/npc/isNpcActionFinished.md | 2 + docs/functions/npc/npcAttackMelee.md | 2 + docs/functions/npc/npcAttackRanged.md | 2 + docs/functions/npc/npcSpellCast.md | 2 + docs/functions/npc/npcUseClosestMob.md | 2 + docs/functions/npc/setNpcHostPlayer.md | 2 + docs/functions/player/addBan.md | 2 + docs/functions/player/applyPlayerOverlay.md | 2 + docs/functions/player/ban.md | 2 + docs/functions/player/drawWeapon.md | 2 + docs/functions/player/equipItem.md | 2 + docs/functions/player/getPlayerAmulet.md | 2 + docs/functions/player/getPlayerAngle.md | 2 + docs/functions/player/getPlayerAni.md | 2 + docs/functions/player/getPlayerArmor.md | 2 + docs/functions/player/getPlayerAtVector.md | 2 + docs/functions/player/getPlayerBelt.md | 2 + .../player/getPlayerCameraPosition.md | 2 + docs/functions/player/getPlayerCollision.md | 2 + docs/functions/player/getPlayerColor.md | 2 + docs/functions/player/getPlayerContext.md | 2 + docs/functions/player/getPlayerDexterity.md | 2 + docs/functions/player/getPlayerFaceAnis.md | 2 + docs/functions/player/getPlayerFatness.md | 2 + docs/functions/player/getPlayerFocus.md | 2 + docs/functions/player/getPlayerHealth.md | 2 + docs/functions/player/getPlayerHelmet.md | 2 + docs/functions/player/getPlayerIP.md | 2 + docs/functions/player/getPlayerInstance.md | 2 + docs/functions/player/getPlayerInvisible.md | 2 + docs/functions/player/getPlayerMacAddr.md | 2 + docs/functions/player/getPlayerMana.md | 2 + docs/functions/player/getPlayerMaxHealth.md | 2 + docs/functions/player/getPlayerMaxMana.md | 2 + docs/functions/player/getPlayerMeleeWeapon.md | 2 + docs/functions/player/getPlayerName.md | 2 + docs/functions/player/getPlayerPing.md | 2 + docs/functions/player/getPlayerPosition.md | 2 + .../functions/player/getPlayerRangedWeapon.md | 2 + docs/functions/player/getPlayerRespawnTime.md | 2 + docs/functions/player/getPlayerRing.md | 2 + docs/functions/player/getPlayerScale.md | 2 + docs/functions/player/getPlayerSerial.md | 2 + docs/functions/player/getPlayerShield.md | 2 + docs/functions/player/getPlayerSkillWeapon.md | 2 + docs/functions/player/getPlayerSpell.md | 2 + docs/functions/player/getPlayerStrength.md | 2 + docs/functions/player/getPlayerTalent.md | 2 + docs/functions/player/getPlayerUID.md | 2 + .../functions/player/getPlayerVirtualWorld.md | 2 + .../functions/player/getPlayerVisual.md | 4 +- docs/functions/player/getPlayerWeaponMode.md | 2 + docs/functions/player/getPlayerWorld.md | 2 + docs/functions/player/giveItem.md | 2 + docs/functions/player/hitPlayer.md | 2 + docs/functions/player/isPlayerConnected.md | 2 + docs/functions/player/isPlayerDead.md | 2 + docs/functions/player/isPlayerSpawned.md | 2 + docs/functions/player/isPlayerUnconscious.md | 2 + docs/functions/player/kick.md | 2 + docs/functions/player/playAni.md | 2 + docs/functions/player/playFaceAni.md | 2 + docs/functions/player/readySpell.md | 2 + docs/functions/player/removeItem.md | 2 + docs/functions/player/removePlayerOverlay.md | 2 + docs/functions/player/removeWeapon.md | 2 + docs/functions/player/setPlayerAngle.md | 2 + docs/functions/player/setPlayerCollision.md | 2 + docs/functions/player/setPlayerColor.md | 2 + docs/functions/player/setPlayerDexterity.md | 2 + docs/functions/player/setPlayerFatness.md | 2 + docs/functions/player/setPlayerHealth.md | 2 + docs/functions/player/setPlayerInstance.md | 2 + docs/functions/player/setPlayerInvisible.md | 2 + docs/functions/player/setPlayerMana.md | 2 + docs/functions/player/setPlayerMaxHealth.md | 2 + docs/functions/player/setPlayerMaxMana.md | 2 + docs/functions/player/setPlayerName.md | 2 + docs/functions/player/setPlayerRespawnTime.md | 2 + docs/functions/player/setPlayerScale.md | 2 + docs/functions/player/setPlayerSkillWeapon.md | 2 + docs/functions/player/setPlayerStrength.md | 2 + docs/functions/player/setPlayerTalent.md | 2 + .../functions/player/setPlayerVirtualWorld.md | 2 + docs/functions/player/setPlayerVisual.md | 2 + docs/functions/player/setPlayerWeaponMode.md | 2 + docs/functions/player/setPlayerWorld.md | 2 + docs/functions/player/spawnPlayer.md | 2 + docs/functions/player/stopAni.md | 2 + docs/functions/player/stopFaceAni.md | 2 + docs/functions/player/unequipItem.md | 2 + docs/functions/player/unreadySpell.md | 2 + docs/functions/player/unspawnPlayer.md | 2 + docs/functions/player/useItem.md | 2 + docs/functions/player/useItemToState.md | 2 + docs/functions/streamer/findNearbyPlayers.md | 2 + .../streamer/getSpawnedPlayersForPlayer.md | 2 + .../streamer/getStreamedPlayersByPlayer.md | 2 + docs/functions/waypoint/getNearestWaypoint.md | 2 + docs/functions/waypoint/getWaypoint.md | 2 + docs/index.md | 45 +++++++++ {python/docs => docs}/qna.md | 0 python/mkdocs.yml => mkdocs.yml | 8 -- python/docs/classes/game/Daedalus.md | 3 - python/docs/classes/game/DamageDescription.md | 3 - python/docs/classes/game/Sky.md | 3 - python/docs/classes/item/ItemGround.md | 3 - python/docs/classes/item/ItemsGround.md | 3 - python/docs/classes/mds/Mds.md | 3 - python/docs/classes/network/Packet.md | 3 - python/docs/classes/waypoint/Way.md | 3 - python/docs/defaultEvents/network/onPacket.md | 22 ----- .../player/onPlayerChangeWeaponMode.md | 19 ---- .../docs/functions/chat/sendMessageToAll.md | 2 - .../functions/chat/sendMessageToPlayer.md | 2 - .../functions/chat/sendPlayerMessageToAll.md | 2 - .../chat/sendPlayerMessageToPlayer.md | 2 - python/docs/functions/event/addEvent.md | 2 - python/docs/functions/event/callEvent.md | 2 - python/docs/functions/event/event.md | 2 - python/docs/functions/event/removeEvent.md | 2 - .../functions/event/removeEventHandler.md | 2 - python/docs/functions/event/toggleEvent.md | 2 - python/docs/functions/game/exit.md | 2 - python/docs/functions/game/getDayLength.md | 2 - python/docs/functions/game/getHostname.md | 2 - python/docs/functions/game/getMaxSlots.md | 2 - python/docs/functions/game/getPlayersCount.md | 2 - .../functions/game/getServerDescription.md | 2 - python/docs/functions/game/getServerWorld.md | 2 - python/docs/functions/game/getTime.md | 2 - python/docs/functions/game/serverLog.md | 2 - python/docs/functions/game/setDayLength.md | 2 - .../functions/game/setServerDescription.md | 2 - python/docs/functions/game/setServerWorld.md | 2 - python/docs/functions/game/setTime.md | 2 - python/docs/functions/npc/clearNpcActions.md | 2 - python/docs/functions/npc/createNpc.md | 2 - python/docs/functions/npc/destroyNpc.md | 2 - python/docs/functions/npc/getNpcAction.md | 2 - python/docs/functions/npc/getNpcActions.md | 2 - .../docs/functions/npc/getNpcActionsCount.md | 2 - python/docs/functions/npc/getNpcHostPlayer.md | 2 - .../docs/functions/npc/getNpcLastActionId.md | 2 - python/docs/functions/npc/isNpc.md | 2 - .../docs/functions/npc/isNpcActionFinished.md | 2 - python/docs/functions/npc/npcAttackMelee.md | 2 - python/docs/functions/npc/npcAttackRanged.md | 2 - python/docs/functions/npc/npcSpellCast.md | 2 - python/docs/functions/npc/npcUseClosestMob.md | 2 - python/docs/functions/npc/setNpcHostPlayer.md | 2 - python/docs/functions/player/addBan.md | 2 - .../functions/player/applyPlayerOverlay.md | 2 - python/docs/functions/player/ban.md | 2 - python/docs/functions/player/drawWeapon.md | 2 - python/docs/functions/player/equipItem.md | 2 - .../docs/functions/player/getPlayerAmulet.md | 2 - .../docs/functions/player/getPlayerAngle.md | 2 - python/docs/functions/player/getPlayerAni.md | 2 - .../docs/functions/player/getPlayerArmor.md | 2 - .../functions/player/getPlayerAtVector.md | 2 - python/docs/functions/player/getPlayerBelt.md | 2 - .../player/getPlayerCameraPosition.md | 2 - .../functions/player/getPlayerCollision.md | 2 - .../docs/functions/player/getPlayerColor.md | 2 - .../docs/functions/player/getPlayerContext.md | 2 - .../functions/player/getPlayerDexterity.md | 2 - .../functions/player/getPlayerFaceAnis.md | 2 - .../docs/functions/player/getPlayerFatness.md | 2 - .../docs/functions/player/getPlayerFocus.md | 2 - .../docs/functions/player/getPlayerHealth.md | 2 - .../docs/functions/player/getPlayerHelmet.md | 2 - python/docs/functions/player/getPlayerIP.md | 2 - .../functions/player/getPlayerInstance.md | 2 - .../functions/player/getPlayerInvisible.md | 2 - .../docs/functions/player/getPlayerMacAddr.md | 2 - python/docs/functions/player/getPlayerMana.md | 2 - .../functions/player/getPlayerMaxHealth.md | 2 - .../docs/functions/player/getPlayerMaxMana.md | 2 - .../functions/player/getPlayerMeleeWeapon.md | 2 - python/docs/functions/player/getPlayerName.md | 2 - python/docs/functions/player/getPlayerPing.md | 2 - .../functions/player/getPlayerPosition.md | 2 - .../functions/player/getPlayerRangedWeapon.md | 2 - .../functions/player/getPlayerRespawnTime.md | 2 - python/docs/functions/player/getPlayerRing.md | 2 - .../docs/functions/player/getPlayerScale.md | 2 - .../docs/functions/player/getPlayerSerial.md | 2 - .../docs/functions/player/getPlayerShield.md | 2 - .../functions/player/getPlayerSkillWeapon.md | 2 - .../docs/functions/player/getPlayerSpell.md | 2 - .../functions/player/getPlayerStrength.md | 2 - .../docs/functions/player/getPlayerTalent.md | 2 - python/docs/functions/player/getPlayerUID.md | 2 - .../functions/player/getPlayerVirtualWorld.md | 2 - .../docs/functions/player/getPlayerVisual.md | 2 - .../functions/player/getPlayerWeaponMode.md | 2 - .../docs/functions/player/getPlayerWorld.md | 2 - python/docs/functions/player/giveItem.md | 2 - python/docs/functions/player/hitPlayer.md | 2 - .../functions/player/isPlayerConnected.md | 2 - python/docs/functions/player/isPlayerDead.md | 2 - .../docs/functions/player/isPlayerSpawned.md | 2 - .../functions/player/isPlayerUnconscious.md | 2 - python/docs/functions/player/kick.md | 2 - python/docs/functions/player/playAni.md | 2 - python/docs/functions/player/playFaceAni.md | 2 - python/docs/functions/player/readySpell.md | 2 - python/docs/functions/player/removeItem.md | 2 - .../functions/player/removePlayerOverlay.md | 2 - python/docs/functions/player/removeWeapon.md | 2 - .../docs/functions/player/setPlayerAngle.md | 2 - .../functions/player/setPlayerCollision.md | 2 - .../docs/functions/player/setPlayerColor.md | 2 - .../functions/player/setPlayerDexterity.md | 2 - .../docs/functions/player/setPlayerFatness.md | 2 - .../docs/functions/player/setPlayerHealth.md | 2 - .../functions/player/setPlayerInstance.md | 2 - .../functions/player/setPlayerInvisible.md | 2 - python/docs/functions/player/setPlayerMana.md | 2 - .../functions/player/setPlayerMaxHealth.md | 2 - .../docs/functions/player/setPlayerMaxMana.md | 2 - python/docs/functions/player/setPlayerName.md | 2 - .../functions/player/setPlayerRespawnTime.md | 2 - .../docs/functions/player/setPlayerScale.md | 2 - .../functions/player/setPlayerSkillWeapon.md | 2 - .../functions/player/setPlayerStrength.md | 2 - .../docs/functions/player/setPlayerTalent.md | 2 - .../functions/player/setPlayerVirtualWorld.md | 2 - .../docs/functions/player/setPlayerVisual.md | 2 - .../functions/player/setPlayerWeaponMode.md | 2 - .../docs/functions/player/setPlayerWorld.md | 2 - python/docs/functions/player/spawnPlayer.md | 2 - python/docs/functions/player/stopAni.md | 2 - python/docs/functions/player/stopFaceAni.md | 2 - python/docs/functions/player/unequipItem.md | 2 - python/docs/functions/player/unspawnPlayer.md | 2 - python/docs/functions/player/useItem.md | 2 - .../docs/functions/player/useItemToState.md | 2 - .../functions/streamer/findNearbyPlayers.md | 2 - .../streamer/getSpawnedPlayersForPlayer.md | 2 - .../streamer/getStreamedPlayersByPlayer.md | 2 - .../functions/waypoint/getNearestWaypoint.md | 2 - python/docs/functions/waypoint/getWaypoint.md | 2 - python/docs/howto/localdebug.md | 47 ---------- python/docs/index.md | 34 ------- 347 files changed, 530 insertions(+), 700 deletions(-) delete mode 100644 .github/workflows/release.yml create mode 100644 docs/classes/game/Daedalus.md create mode 100644 docs/classes/game/DamageDescription.md create mode 100644 docs/classes/game/Sky.md create mode 100644 docs/classes/item/ItemGround.md create mode 100644 docs/classes/item/ItemsGround.md create mode 100644 docs/classes/mds/Mds.md rename {python/docs => docs}/comparing.md (66%) rename {python/docs => docs}/constants/anticheat.md (100%) rename {python/docs => docs}/constants/context.md (100%) rename {python/docs => docs}/constants/damage.md (100%) rename {python/docs => docs}/constants/general.md (100%) rename {python/docs => docs}/constants/hand.md (100%) rename {python/docs => docs}/constants/item.md (100%) rename {python/docs => docs}/constants/network.md (100%) rename {python/docs => docs}/constants/npc.md (100%) rename {python/docs => docs}/constants/reliability.md (100%) rename {python/docs => docs}/constants/skill-weapon.md (100%) rename {python/docs => docs}/constants/talent.md (100%) rename {python/docs => docs}/constants/weapon-mode.md (100%) rename {python/docs => docs}/constants/weather.md (100%) rename {python/docs => docs}/defaultEvents/anticheat/onPlayerUseCheat.md (80%) rename {python/docs => docs}/defaultEvents/general/onBan.md (80%) rename {python/docs => docs}/defaultEvents/general/onExit.md (89%) rename {python/docs => docs}/defaultEvents/general/onInit.md (85%) rename {python/docs => docs}/defaultEvents/general/onTick.md (87%) rename {python/docs => docs}/defaultEvents/general/onTime.md (78%) rename {python/docs => docs}/defaultEvents/general/onUnban.md (88%) rename {python/docs => docs}/defaultEvents/npc/onNpcActionFinished.md (75%) rename {python/docs => docs}/defaultEvents/npc/onNpcActionSent.md (79%) rename {python/docs => docs}/defaultEvents/npc/onNpcChangeHostPlayer.md (81%) rename {python/docs => docs}/defaultEvents/npc/onNpcCreated.md (79%) rename {python/docs => docs}/defaultEvents/npc/onNpcDestroyed.md (78%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeColor.md (70%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeFocus.md (73%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeHealth.md (60%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeMana.md (59%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeMaxHealth.md (60%) rename {python/docs => docs}/defaultEvents/player/onPlayerChangeMaxMana.md (60%) create mode 100644 docs/defaultEvents/player/onPlayerChangeWeaponMode.md rename {python/docs => docs}/defaultEvents/player/onPlayerChangeWorld.md (81%) rename {python/docs => docs}/defaultEvents/player/onPlayerCommand.md (79%) rename {python/docs => docs}/defaultEvents/player/onPlayerDamage.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerDead.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerDisconnect.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerDropItem.md (79%) rename {python/docs => docs}/defaultEvents/player/onPlayerEnterWorld.md (81%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipAmulet.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipArmor.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipBelt.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipHandItem.md (84%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipHelmet.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipMeleeWeapon.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipRangedWeapon.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipRing.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipShield.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerEquipSpell.md (81%) rename {python/docs => docs}/defaultEvents/player/onPlayerJoin.md (77%) rename {python/docs => docs}/defaultEvents/player/onPlayerMessage.md (79%) rename {python/docs => docs}/defaultEvents/player/onPlayerMobInteract.md (83%) rename {python/docs => docs}/defaultEvents/player/onPlayerRespawn.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerShoot.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerSpellCast.md (86%) rename {python/docs => docs}/defaultEvents/player/onPlayerSpellSetup.md (80%) rename {python/docs => docs}/defaultEvents/player/onPlayerTakeItem.md (85%) rename {python/docs => docs}/defaultEvents/player/onPlayerTeleport.md (82%) rename {python/docs => docs}/defaultEvents/player/onPlayerToggleFaceAni.md (84%) create mode 100644 docs/functions/chat/sendMessageToAll.md create mode 100644 docs/functions/chat/sendMessageToPlayer.md create mode 100644 docs/functions/chat/sendPlayerMessageToAll.md create mode 100644 docs/functions/chat/sendPlayerMessageToPlayer.md create mode 100644 docs/functions/event/addEvent.md create mode 100644 docs/functions/event/callEvent.md create mode 100644 docs/functions/event/event.md create mode 100644 docs/functions/event/removeEvent.md create mode 100644 docs/functions/event/removeEventHandler.md create mode 100644 docs/functions/event/toggleEvent.md create mode 100644 docs/functions/game/exit.md create mode 100644 docs/functions/game/getDayLength.md create mode 100644 docs/functions/game/getHostname.md create mode 100644 docs/functions/game/getMaxSlots.md create mode 100644 docs/functions/game/getPlayersCount.md create mode 100644 docs/functions/game/getServerDescription.md create mode 100644 docs/functions/game/getServerWorld.md create mode 100644 docs/functions/game/getTime.md create mode 100644 docs/functions/game/serverLog.md create mode 100644 docs/functions/game/setDayLength.md create mode 100644 docs/functions/game/setServerDescription.md create mode 100644 docs/functions/game/setServerWorld.md create mode 100644 docs/functions/game/setTime.md create mode 100644 docs/functions/npc/clearNpcActions.md create mode 100644 docs/functions/npc/createNpc.md create mode 100644 docs/functions/npc/destroyNpc.md create mode 100644 docs/functions/npc/getNpcAction.md create mode 100644 docs/functions/npc/getNpcActions.md create mode 100644 docs/functions/npc/getNpcActionsCount.md create mode 100644 docs/functions/npc/getNpcHostPlayer.md create mode 100644 docs/functions/npc/getNpcLastActionId.md create mode 100644 docs/functions/npc/isNpc.md create mode 100644 docs/functions/npc/isNpcActionFinished.md create mode 100644 docs/functions/npc/npcAttackMelee.md create mode 100644 docs/functions/npc/npcAttackRanged.md create mode 100644 docs/functions/npc/npcSpellCast.md create mode 100644 docs/functions/npc/npcUseClosestMob.md create mode 100644 docs/functions/npc/setNpcHostPlayer.md create mode 100644 docs/functions/player/addBan.md create mode 100644 docs/functions/player/applyPlayerOverlay.md create mode 100644 docs/functions/player/ban.md create mode 100644 docs/functions/player/drawWeapon.md create mode 100644 docs/functions/player/equipItem.md create mode 100644 docs/functions/player/getPlayerAmulet.md create mode 100644 docs/functions/player/getPlayerAngle.md create mode 100644 docs/functions/player/getPlayerAni.md create mode 100644 docs/functions/player/getPlayerArmor.md create mode 100644 docs/functions/player/getPlayerAtVector.md create mode 100644 docs/functions/player/getPlayerBelt.md create mode 100644 docs/functions/player/getPlayerCameraPosition.md create mode 100644 docs/functions/player/getPlayerCollision.md create mode 100644 docs/functions/player/getPlayerColor.md create mode 100644 docs/functions/player/getPlayerContext.md create mode 100644 docs/functions/player/getPlayerDexterity.md create mode 100644 docs/functions/player/getPlayerFaceAnis.md create mode 100644 docs/functions/player/getPlayerFatness.md create mode 100644 docs/functions/player/getPlayerFocus.md create mode 100644 docs/functions/player/getPlayerHealth.md create mode 100644 docs/functions/player/getPlayerHelmet.md create mode 100644 docs/functions/player/getPlayerIP.md create mode 100644 docs/functions/player/getPlayerInstance.md create mode 100644 docs/functions/player/getPlayerInvisible.md create mode 100644 docs/functions/player/getPlayerMacAddr.md create mode 100644 docs/functions/player/getPlayerMana.md create mode 100644 docs/functions/player/getPlayerMaxHealth.md create mode 100644 docs/functions/player/getPlayerMaxMana.md create mode 100644 docs/functions/player/getPlayerMeleeWeapon.md create mode 100644 docs/functions/player/getPlayerName.md create mode 100644 docs/functions/player/getPlayerPing.md create mode 100644 docs/functions/player/getPlayerPosition.md create mode 100644 docs/functions/player/getPlayerRangedWeapon.md create mode 100644 docs/functions/player/getPlayerRespawnTime.md create mode 100644 docs/functions/player/getPlayerRing.md create mode 100644 docs/functions/player/getPlayerScale.md create mode 100644 docs/functions/player/getPlayerSerial.md create mode 100644 docs/functions/player/getPlayerShield.md create mode 100644 docs/functions/player/getPlayerSkillWeapon.md create mode 100644 docs/functions/player/getPlayerSpell.md create mode 100644 docs/functions/player/getPlayerStrength.md create mode 100644 docs/functions/player/getPlayerTalent.md create mode 100644 docs/functions/player/getPlayerUID.md create mode 100644 docs/functions/player/getPlayerVirtualWorld.md rename python/docs/functions/player/unreadySpell.md => docs/functions/player/getPlayerVisual.md (50%) create mode 100644 docs/functions/player/getPlayerWeaponMode.md create mode 100644 docs/functions/player/getPlayerWorld.md create mode 100644 docs/functions/player/giveItem.md create mode 100644 docs/functions/player/hitPlayer.md create mode 100644 docs/functions/player/isPlayerConnected.md create mode 100644 docs/functions/player/isPlayerDead.md create mode 100644 docs/functions/player/isPlayerSpawned.md create mode 100644 docs/functions/player/isPlayerUnconscious.md create mode 100644 docs/functions/player/kick.md create mode 100644 docs/functions/player/playAni.md create mode 100644 docs/functions/player/playFaceAni.md create mode 100644 docs/functions/player/readySpell.md create mode 100644 docs/functions/player/removeItem.md create mode 100644 docs/functions/player/removePlayerOverlay.md create mode 100644 docs/functions/player/removeWeapon.md create mode 100644 docs/functions/player/setPlayerAngle.md create mode 100644 docs/functions/player/setPlayerCollision.md create mode 100644 docs/functions/player/setPlayerColor.md create mode 100644 docs/functions/player/setPlayerDexterity.md create mode 100644 docs/functions/player/setPlayerFatness.md create mode 100644 docs/functions/player/setPlayerHealth.md create mode 100644 docs/functions/player/setPlayerInstance.md create mode 100644 docs/functions/player/setPlayerInvisible.md create mode 100644 docs/functions/player/setPlayerMana.md create mode 100644 docs/functions/player/setPlayerMaxHealth.md create mode 100644 docs/functions/player/setPlayerMaxMana.md create mode 100644 docs/functions/player/setPlayerName.md create mode 100644 docs/functions/player/setPlayerRespawnTime.md create mode 100644 docs/functions/player/setPlayerScale.md create mode 100644 docs/functions/player/setPlayerSkillWeapon.md create mode 100644 docs/functions/player/setPlayerStrength.md create mode 100644 docs/functions/player/setPlayerTalent.md create mode 100644 docs/functions/player/setPlayerVirtualWorld.md create mode 100644 docs/functions/player/setPlayerVisual.md create mode 100644 docs/functions/player/setPlayerWeaponMode.md create mode 100644 docs/functions/player/setPlayerWorld.md create mode 100644 docs/functions/player/spawnPlayer.md create mode 100644 docs/functions/player/stopAni.md create mode 100644 docs/functions/player/stopFaceAni.md create mode 100644 docs/functions/player/unequipItem.md create mode 100644 docs/functions/player/unreadySpell.md create mode 100644 docs/functions/player/unspawnPlayer.md create mode 100644 docs/functions/player/useItem.md create mode 100644 docs/functions/player/useItemToState.md create mode 100644 docs/functions/streamer/findNearbyPlayers.md create mode 100644 docs/functions/streamer/getSpawnedPlayersForPlayer.md create mode 100644 docs/functions/streamer/getStreamedPlayersByPlayer.md create mode 100644 docs/functions/waypoint/getNearestWaypoint.md create mode 100644 docs/functions/waypoint/getWaypoint.md create mode 100644 docs/index.md rename {python/docs => docs}/qna.md (100%) rename python/mkdocs.yml => mkdocs.yml (98%) delete mode 100644 python/docs/classes/game/Daedalus.md delete mode 100644 python/docs/classes/game/DamageDescription.md delete mode 100644 python/docs/classes/game/Sky.md delete mode 100644 python/docs/classes/item/ItemGround.md delete mode 100644 python/docs/classes/item/ItemsGround.md delete mode 100644 python/docs/classes/mds/Mds.md delete mode 100644 python/docs/classes/network/Packet.md delete mode 100644 python/docs/classes/waypoint/Way.md delete mode 100644 python/docs/defaultEvents/network/onPacket.md delete mode 100644 python/docs/defaultEvents/player/onPlayerChangeWeaponMode.md delete mode 100644 python/docs/functions/chat/sendMessageToAll.md delete mode 100644 python/docs/functions/chat/sendMessageToPlayer.md delete mode 100644 python/docs/functions/chat/sendPlayerMessageToAll.md delete mode 100644 python/docs/functions/chat/sendPlayerMessageToPlayer.md delete mode 100644 python/docs/functions/event/addEvent.md delete mode 100644 python/docs/functions/event/callEvent.md delete mode 100644 python/docs/functions/event/event.md delete mode 100644 python/docs/functions/event/removeEvent.md delete mode 100644 python/docs/functions/event/removeEventHandler.md delete mode 100644 python/docs/functions/event/toggleEvent.md delete mode 100644 python/docs/functions/game/exit.md delete mode 100644 python/docs/functions/game/getDayLength.md delete mode 100644 python/docs/functions/game/getHostname.md delete mode 100644 python/docs/functions/game/getMaxSlots.md delete mode 100644 python/docs/functions/game/getPlayersCount.md delete mode 100644 python/docs/functions/game/getServerDescription.md delete mode 100644 python/docs/functions/game/getServerWorld.md delete mode 100644 python/docs/functions/game/getTime.md delete mode 100644 python/docs/functions/game/serverLog.md delete mode 100644 python/docs/functions/game/setDayLength.md delete mode 100644 python/docs/functions/game/setServerDescription.md delete mode 100644 python/docs/functions/game/setServerWorld.md delete mode 100644 python/docs/functions/game/setTime.md delete mode 100644 python/docs/functions/npc/clearNpcActions.md delete mode 100644 python/docs/functions/npc/createNpc.md delete mode 100644 python/docs/functions/npc/destroyNpc.md delete mode 100644 python/docs/functions/npc/getNpcAction.md delete mode 100644 python/docs/functions/npc/getNpcActions.md delete mode 100644 python/docs/functions/npc/getNpcActionsCount.md delete mode 100644 python/docs/functions/npc/getNpcHostPlayer.md delete mode 100644 python/docs/functions/npc/getNpcLastActionId.md delete mode 100644 python/docs/functions/npc/isNpc.md delete mode 100644 python/docs/functions/npc/isNpcActionFinished.md delete mode 100644 python/docs/functions/npc/npcAttackMelee.md delete mode 100644 python/docs/functions/npc/npcAttackRanged.md delete mode 100644 python/docs/functions/npc/npcSpellCast.md delete mode 100644 python/docs/functions/npc/npcUseClosestMob.md delete mode 100644 python/docs/functions/npc/setNpcHostPlayer.md delete mode 100644 python/docs/functions/player/addBan.md delete mode 100644 python/docs/functions/player/applyPlayerOverlay.md delete mode 100644 python/docs/functions/player/ban.md delete mode 100644 python/docs/functions/player/drawWeapon.md delete mode 100644 python/docs/functions/player/equipItem.md delete mode 100644 python/docs/functions/player/getPlayerAmulet.md delete mode 100644 python/docs/functions/player/getPlayerAngle.md delete mode 100644 python/docs/functions/player/getPlayerAni.md delete mode 100644 python/docs/functions/player/getPlayerArmor.md delete mode 100644 python/docs/functions/player/getPlayerAtVector.md delete mode 100644 python/docs/functions/player/getPlayerBelt.md delete mode 100644 python/docs/functions/player/getPlayerCameraPosition.md delete mode 100644 python/docs/functions/player/getPlayerCollision.md delete mode 100644 python/docs/functions/player/getPlayerColor.md delete mode 100644 python/docs/functions/player/getPlayerContext.md delete mode 100644 python/docs/functions/player/getPlayerDexterity.md delete mode 100644 python/docs/functions/player/getPlayerFaceAnis.md delete mode 100644 python/docs/functions/player/getPlayerFatness.md delete mode 100644 python/docs/functions/player/getPlayerFocus.md delete mode 100644 python/docs/functions/player/getPlayerHealth.md delete mode 100644 python/docs/functions/player/getPlayerHelmet.md delete mode 100644 python/docs/functions/player/getPlayerIP.md delete mode 100644 python/docs/functions/player/getPlayerInstance.md delete mode 100644 python/docs/functions/player/getPlayerInvisible.md delete mode 100644 python/docs/functions/player/getPlayerMacAddr.md delete mode 100644 python/docs/functions/player/getPlayerMana.md delete mode 100644 python/docs/functions/player/getPlayerMaxHealth.md delete mode 100644 python/docs/functions/player/getPlayerMaxMana.md delete mode 100644 python/docs/functions/player/getPlayerMeleeWeapon.md delete mode 100644 python/docs/functions/player/getPlayerName.md delete mode 100644 python/docs/functions/player/getPlayerPing.md delete mode 100644 python/docs/functions/player/getPlayerPosition.md delete mode 100644 python/docs/functions/player/getPlayerRangedWeapon.md delete mode 100644 python/docs/functions/player/getPlayerRespawnTime.md delete mode 100644 python/docs/functions/player/getPlayerRing.md delete mode 100644 python/docs/functions/player/getPlayerScale.md delete mode 100644 python/docs/functions/player/getPlayerSerial.md delete mode 100644 python/docs/functions/player/getPlayerShield.md delete mode 100644 python/docs/functions/player/getPlayerSkillWeapon.md delete mode 100644 python/docs/functions/player/getPlayerSpell.md delete mode 100644 python/docs/functions/player/getPlayerStrength.md delete mode 100644 python/docs/functions/player/getPlayerTalent.md delete mode 100644 python/docs/functions/player/getPlayerUID.md delete mode 100644 python/docs/functions/player/getPlayerVirtualWorld.md delete mode 100644 python/docs/functions/player/getPlayerVisual.md delete mode 100644 python/docs/functions/player/getPlayerWeaponMode.md delete mode 100644 python/docs/functions/player/getPlayerWorld.md delete mode 100644 python/docs/functions/player/giveItem.md delete mode 100644 python/docs/functions/player/hitPlayer.md delete mode 100644 python/docs/functions/player/isPlayerConnected.md delete mode 100644 python/docs/functions/player/isPlayerDead.md delete mode 100644 python/docs/functions/player/isPlayerSpawned.md delete mode 100644 python/docs/functions/player/isPlayerUnconscious.md delete mode 100644 python/docs/functions/player/kick.md delete mode 100644 python/docs/functions/player/playAni.md delete mode 100644 python/docs/functions/player/playFaceAni.md delete mode 100644 python/docs/functions/player/readySpell.md delete mode 100644 python/docs/functions/player/removeItem.md delete mode 100644 python/docs/functions/player/removePlayerOverlay.md delete mode 100644 python/docs/functions/player/removeWeapon.md delete mode 100644 python/docs/functions/player/setPlayerAngle.md delete mode 100644 python/docs/functions/player/setPlayerCollision.md delete mode 100644 python/docs/functions/player/setPlayerColor.md delete mode 100644 python/docs/functions/player/setPlayerDexterity.md delete mode 100644 python/docs/functions/player/setPlayerFatness.md delete mode 100644 python/docs/functions/player/setPlayerHealth.md delete mode 100644 python/docs/functions/player/setPlayerInstance.md delete mode 100644 python/docs/functions/player/setPlayerInvisible.md delete mode 100644 python/docs/functions/player/setPlayerMana.md delete mode 100644 python/docs/functions/player/setPlayerMaxHealth.md delete mode 100644 python/docs/functions/player/setPlayerMaxMana.md delete mode 100644 python/docs/functions/player/setPlayerName.md delete mode 100644 python/docs/functions/player/setPlayerRespawnTime.md delete mode 100644 python/docs/functions/player/setPlayerScale.md delete mode 100644 python/docs/functions/player/setPlayerSkillWeapon.md delete mode 100644 python/docs/functions/player/setPlayerStrength.md delete mode 100644 python/docs/functions/player/setPlayerTalent.md delete mode 100644 python/docs/functions/player/setPlayerVirtualWorld.md delete mode 100644 python/docs/functions/player/setPlayerVisual.md delete mode 100644 python/docs/functions/player/setPlayerWeaponMode.md delete mode 100644 python/docs/functions/player/setPlayerWorld.md delete mode 100644 python/docs/functions/player/spawnPlayer.md delete mode 100644 python/docs/functions/player/stopAni.md delete mode 100644 python/docs/functions/player/stopFaceAni.md delete mode 100644 python/docs/functions/player/unequipItem.md delete mode 100644 python/docs/functions/player/unspawnPlayer.md delete mode 100644 python/docs/functions/player/useItem.md delete mode 100644 python/docs/functions/player/useItemToState.md delete mode 100644 python/docs/functions/streamer/findNearbyPlayers.md delete mode 100644 python/docs/functions/streamer/getSpawnedPlayersForPlayer.md delete mode 100644 python/docs/functions/streamer/getStreamedPlayersByPlayer.md delete mode 100644 python/docs/functions/waypoint/getNearestWaypoint.md delete mode 100644 python/docs/functions/waypoint/getWaypoint.md delete mode 100644 python/docs/howto/localdebug.md delete mode 100644 python/docs/index.md diff --git a/.github/workflows/docs_pages.yml b/.github/workflows/docs_pages.yml index a28989d..b07b9fc 100644 --- a/.github/workflows/docs_pages.yml +++ b/.github/workflows/docs_pages.yml @@ -19,5 +19,4 @@ jobs: pip install mkdocs-material pip install mkdocs-callouts pip install mkdocs-glightbox - cd python/ mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index ebc5e4a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: release - -on: workflow_dispatch - -jobs: - create-new-release: - runs-on: ubuntu-latest - permissions: - contents: write - outputs: - assets_url: ${{ steps.create-release.outputs.upload_url }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Create release - id: create-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.run_number }} - release_name: Release Title - body_path: CHANGELOG.md - draft: true - release-win64: - runs-on: windows-latest - needs: create-new-release - permissions: - contents: write - outputs: - assets_url: ${{ steps.create-release.outputs.upload_url }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install MSVC - uses: ilammy/msvc-dev-cmd@v1 - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - name: Install CMake - uses: lukka/get-cmake@latest - - name: Init submodules - run: git submodule update --init --recursive - - name: CMake - Configure - run: cmake . --preset Windows-x64-Release -DCMAKE_BUILD_TYPE="Release" -DCOUT_FILE_SUFFIX="x64" - - name: CMake - Build - run: cmake --build --preset Windows-x64-Release - - name: Archive output files - run: Compress-Archive -Path "python/g2o", "build/Windows-x64-Release/source/PyG2O.x64.dll" -Destination Windows-x64-Release.zip - - name: Upload release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-new-release.outputs.assets_url }} - asset_path: ./Windows-x64-Release.zip - asset_name: Windows-x64-Release.zip - asset_content_type: application/zip - release-arm64: - runs-on: ubuntu-latest - needs: create-new-release - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - name: Install CMake - uses: lukka/get-cmake@latest - - name: Init submodules - run: git submodule update --init --recursive - - name: CMake - Configure - run: cmake . --preset Linux-x64-Release -DCMAKE_BUILD_TYPE="Release" -DCOUT_FILE_SUFFIX="x64" - - name: CMake - Build - run: cmake --build --preset Linux-x64-Release - - name: Archive files - uses: montudor/action-zip@v1 - with: - args: zip -r Linux-x64-Release.zip python/g2o build/Linux-x64-Release/source/PyG2O.x64.so - - name: Upload release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-new-release.outputs.assets_url }} - asset_path: ./Linux-x64-Release.zip - asset_name: Linux-x64-Release.zip - asset_content_type: application/zip \ No newline at end of file diff --git a/README.md b/README.md index cff5f17..c736013 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,8 @@ Python support for server-side scripts in [Gothic 2 Online](https://gothic-onlin **Documentation:** https://aurumvorxx.github.io/PyG2O/ -## How to build - Requirements: -- Python 3.13 -- CMake +- websockets Steps: 1. Copy this repo to your local machine diff --git a/docs/classes/game/Daedalus.md b/docs/classes/game/Daedalus.md new file mode 100644 index 0000000..3954c34 --- /dev/null +++ b/docs/classes/game/Daedalus.md @@ -0,0 +1,3 @@ +# `static class` Daedalus +--- +::: src.pyg2o.classes.daedalus.Daedalus \ No newline at end of file diff --git a/docs/classes/game/DamageDescription.md b/docs/classes/game/DamageDescription.md new file mode 100644 index 0000000..c7439cb --- /dev/null +++ b/docs/classes/game/DamageDescription.md @@ -0,0 +1,3 @@ +# `class` DamageDescription +--- +::: src.pyg2o.classes.damage.DamageDescription \ No newline at end of file diff --git a/docs/classes/game/Sky.md b/docs/classes/game/Sky.md new file mode 100644 index 0000000..517e994 --- /dev/null +++ b/docs/classes/game/Sky.md @@ -0,0 +1,3 @@ +# `static class` Sky +--- +::: src.pyg2o.classes.sky.Sky \ No newline at end of file diff --git a/docs/classes/item/ItemGround.md b/docs/classes/item/ItemGround.md new file mode 100644 index 0000000..40cfa9d --- /dev/null +++ b/docs/classes/item/ItemGround.md @@ -0,0 +1,3 @@ +# `static class` ItemGround +--- +::: src.pyg2o.classes.items.ItemGround \ No newline at end of file diff --git a/docs/classes/item/ItemsGround.md b/docs/classes/item/ItemsGround.md new file mode 100644 index 0000000..e00cfa2 --- /dev/null +++ b/docs/classes/item/ItemsGround.md @@ -0,0 +1,3 @@ +# `static class` ItemsGround +--- +::: src.pyg2o.classes.items.ItemsGround \ No newline at end of file diff --git a/docs/classes/mds/Mds.md b/docs/classes/mds/Mds.md new file mode 100644 index 0000000..3279ac6 --- /dev/null +++ b/docs/classes/mds/Mds.md @@ -0,0 +1,3 @@ +# `static class` Mds +--- +::: src.pyg2o.classes.mds.Mds \ No newline at end of file diff --git a/python/docs/comparing.md b/docs/comparing.md similarity index 66% rename from python/docs/comparing.md rename to docs/comparing.md index f5714cf..500ec74 100644 --- a/python/docs/comparing.md +++ b/docs/comparing.md @@ -1,55 +1,55 @@ * `addEventHandler` replaced with decorator [event](functions/event/event.md) ```python -@g2o.event('onInit') -def evtInitFirst(**kwargs): +@pyg2o.event('onInit') +async def evtInitFirst(): print('Hello') -@g2o.event('onInit', 100) # '100' is priority -def evtInitSecond(**kwargs): +@pyg2o.event('onInit', 100) # '100' is priority +async def evtInitSecond(): print('World') ``` --- * Positional arguments inside event handles replaced with keyword arguments (see names of all keywords on the each event page) ```python -@g2o.event('onPlayerChangeColor') -def evtColor(**kwargs): - playerid = kwargs['playerid'] - r = kwargs['r'] - b = kwargs['b'] +@pyg2o.event('onPlayerChangeColor') +async def evtColor(playerid, r, g, b): + pass ``` --- * `callEvent` now also requires to pass keyword arguments instead of positional arguments ```python -@g2o.event('MyTestEvent') -def testEvt(**kwargs): - print(kwargs) +@pyg2o.event('MyTestEvent') +async def testEvt(name, id): + print(name, id) g2o.callEvent('MyTestEvent', name = 'aurumvorax', id = 15) # OR g2o.callEvent('MyTestEvent', {'name': 'aurumvorax', 'id': 15}) # OR args = {'name': 'aurumvorax', 'id': 15} -g2o.callEvent('MyTestEvent', args) +asyncio.create_task(pyg2o.callEvent('MyTestEvent', args)) ``` --- -* `cancelEvent` replaced with returning `False` inside the handler -*(you don't need to explicitly return `True` if you don't want to cancel the event)* -```python -@g2o.event('onPlayerTakeItem') -def evtTake(**kwargs): - return False -``` +* `cancelEvent` temporarily disabled --- * `isEventCancelled` replaced with built-in function property `cancelled`, alongside with the `eventName` ```python -@g2o.event('onPlayerDropItem') -def evtDrop(**kwargs): +@pyg2o.event('onPlayerDropItem') +async def evtDrop(**kwargs): print(evtDrop.cancelled) print(evtDrop.eventName) ``` ------ -* Following functions have been removed RIP :( +--- +Now all constants should be called via **Constant** class +```pyton +import pyg2o + +@pyg2o.event('onInit') +async def evt_init(): + print(pyg2o.Constant.SERVER_SIDE) +``` +* Following functions and classes have been removed RIP :( * `md5` * `sha1` @@ -71,7 +71,17 @@ def evtDrop(**kwargs): * `eventValue` * `getPlayerMagicLevel` * `setPlayerMagicLevel` + * `Packet` + * `Way` + * `NpcAction` + +* Following constants has been removed: + * `UNRELIABLE` + * `UNRELIABLE_SEQUENCED` + * `RELIABLE` + * `RELIABLE_SEQUENCED` + * `RELIABLE_ORDERED` --- * All functions and events that returned/passed a `null` in the Squirrel, now passes an empty string. Most notable in this list are all equipment related functions and events * `onPlayerEquipAmulet` @@ -92,6 +102,4 @@ def evtDrop(**kwargs): * `getPlayerRangedWeapon` * `getPlayerRing` * `getPlayerShield` - * `getPlayerSpell` ---- -* `ItemsGround.getById` throws an exception instead of returning `null` if there's no item with given ID \ No newline at end of file + * `getPlayerSpell` \ No newline at end of file diff --git a/python/docs/constants/anticheat.md b/docs/constants/anticheat.md similarity index 100% rename from python/docs/constants/anticheat.md rename to docs/constants/anticheat.md diff --git a/python/docs/constants/context.md b/docs/constants/context.md similarity index 100% rename from python/docs/constants/context.md rename to docs/constants/context.md diff --git a/python/docs/constants/damage.md b/docs/constants/damage.md similarity index 100% rename from python/docs/constants/damage.md rename to docs/constants/damage.md diff --git a/python/docs/constants/general.md b/docs/constants/general.md similarity index 100% rename from python/docs/constants/general.md rename to docs/constants/general.md diff --git a/python/docs/constants/hand.md b/docs/constants/hand.md similarity index 100% rename from python/docs/constants/hand.md rename to docs/constants/hand.md diff --git a/python/docs/constants/item.md b/docs/constants/item.md similarity index 100% rename from python/docs/constants/item.md rename to docs/constants/item.md diff --git a/python/docs/constants/network.md b/docs/constants/network.md similarity index 100% rename from python/docs/constants/network.md rename to docs/constants/network.md diff --git a/python/docs/constants/npc.md b/docs/constants/npc.md similarity index 100% rename from python/docs/constants/npc.md rename to docs/constants/npc.md diff --git a/python/docs/constants/reliability.md b/docs/constants/reliability.md similarity index 100% rename from python/docs/constants/reliability.md rename to docs/constants/reliability.md diff --git a/python/docs/constants/skill-weapon.md b/docs/constants/skill-weapon.md similarity index 100% rename from python/docs/constants/skill-weapon.md rename to docs/constants/skill-weapon.md diff --git a/python/docs/constants/talent.md b/docs/constants/talent.md similarity index 100% rename from python/docs/constants/talent.md rename to docs/constants/talent.md diff --git a/python/docs/constants/weapon-mode.md b/docs/constants/weapon-mode.md similarity index 100% rename from python/docs/constants/weapon-mode.md rename to docs/constants/weapon-mode.md diff --git a/python/docs/constants/weather.md b/docs/constants/weather.md similarity index 100% rename from python/docs/constants/weather.md rename to docs/constants/weather.md diff --git a/python/docs/defaultEvents/anticheat/onPlayerUseCheat.md b/docs/defaultEvents/anticheat/onPlayerUseCheat.md similarity index 80% rename from python/docs/defaultEvents/anticheat/onPlayerUseCheat.md rename to docs/defaultEvents/anticheat/onPlayerUseCheat.md index 5735c60..8eb53d3 100644 --- a/python/docs/defaultEvents/anticheat/onPlayerUseCheat.md +++ b/docs/defaultEvents/anticheat/onPlayerUseCheat.md @@ -13,9 +13,9 @@ Original: [onPlayerUseCheat](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/ ## Usage ```python -import g2o +import pyg2o -@g2o.event('onPlayerUseCheat') -def onCheat(**kwargs): - print(f'Player {kwargs['playerid']} used forbidden cheat tool type {kwargs['type']}.') +@pyg2o.event('onPlayerUseCheat') +async def onCheat(playerid, type): + print(f'Player {playerid} used forbidden cheat tool type {type}.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onBan.md b/docs/defaultEvents/general/onBan.md similarity index 80% rename from python/docs/defaultEvents/general/onBan.md rename to docs/defaultEvents/general/onBan.md index 203a546..9491ca1 100644 --- a/python/docs/defaultEvents/general/onBan.md +++ b/docs/defaultEvents/general/onBan.md @@ -18,13 +18,13 @@ Original: [onBan](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-refe ## Usage ```python -import g2o +import pyg2o as g2o from datetime import datetime @g2o.event('onBan') -def onBan(**kwargs): - print(f'Player {kwargs['name']} has been banned.') - if ('timestamp' in kwargs): - banExpires = datetime.fromtimestamp(kwargs['timestamp']) +async def onBan(banInfo): + print(f'Player {banInfo['name']} has been banned.') + if ('timestamp' in banInfo): + banExpires = datetime.fromtimestamp(banInfo['timestamp']) print(f'Ban expires at {banExpires}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onExit.md b/docs/defaultEvents/general/onExit.md similarity index 89% rename from python/docs/defaultEvents/general/onExit.md rename to docs/defaultEvents/general/onExit.md index c0690c0..b3aa8fa 100644 --- a/python/docs/defaultEvents/general/onExit.md +++ b/docs/defaultEvents/general/onExit.md @@ -9,9 +9,9 @@ No parameters. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onExit') -def onExitEvt(**kwargs): +async def onExitEvt(): print('Bye') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onInit.md b/docs/defaultEvents/general/onInit.md similarity index 85% rename from python/docs/defaultEvents/general/onInit.md rename to docs/defaultEvents/general/onInit.md index 1434dad..6c5e878 100644 --- a/python/docs/defaultEvents/general/onInit.md +++ b/docs/defaultEvents/general/onInit.md @@ -8,9 +8,9 @@ No parameters. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onInit') -def onInitEventHandler(**kwargs): +async def onInitEventHandler(): print('Called onInit event') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onTick.md b/docs/defaultEvents/general/onTick.md similarity index 87% rename from python/docs/defaultEvents/general/onTick.md rename to docs/defaultEvents/general/onTick.md index f73a90a..5c0c7b7 100644 --- a/python/docs/defaultEvents/general/onTick.md +++ b/docs/defaultEvents/general/onTick.md @@ -8,9 +8,9 @@ No parameters. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onTick') -def onTickEvt(**kwargs): +async def onTickEvt(): print('Tock') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onTime.md b/docs/defaultEvents/general/onTime.md similarity index 78% rename from python/docs/defaultEvents/general/onTime.md rename to docs/defaultEvents/general/onTime.md index 4f21a22..8e068ea 100644 --- a/python/docs/defaultEvents/general/onTime.md +++ b/docs/defaultEvents/general/onTime.md @@ -11,12 +11,9 @@ Original: [onExit](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-ref ## Usage ```python -import g2o +import pyg2o as g2o -@g2o.event('onTick') -def onTickEvt(**kwargs): - day = kwargs['day'] - hour = kwargs['hour'] - mins = kwargs['min'] +@g2o.event('onTime') +async def onTickEvt(day, hour, min): print(f'Current time: Day {day}, Hour {hour}, Min {mins}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/general/onUnban.md b/docs/defaultEvents/general/onUnban.md similarity index 88% rename from python/docs/defaultEvents/general/onUnban.md rename to docs/defaultEvents/general/onUnban.md index 981cf16..7ecaecf 100644 --- a/python/docs/defaultEvents/general/onUnban.md +++ b/docs/defaultEvents/general/onUnban.md @@ -18,9 +18,9 @@ Original: [onExit](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-ref ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onUnban') -def onUnban(**kwargs): - print(f'Player {kwargs['name']} has been unbanned.') +async def onUnban(banInfo): + print(f'Player {banInfo['name']} has been unbanned.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/npc/onNpcActionFinished.md b/docs/defaultEvents/npc/onNpcActionFinished.md similarity index 75% rename from python/docs/defaultEvents/npc/onNpcActionFinished.md rename to docs/defaultEvents/npc/onNpcActionFinished.md index 38abf55..9a68b75 100644 --- a/python/docs/defaultEvents/npc/onNpcActionFinished.md +++ b/docs/defaultEvents/npc/onNpcActionFinished.md @@ -13,9 +13,9 @@ Original: [onNpcActionFinished](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onNpcActionFinished') -def onActionFinished(**kwargs): - print(f'NPC {kwargs['npc_id']} finished action {kwargs['action_type']} with the result {kwargs['result']}.') +async def onActionFinished(npc_id, action_type, action_id, result): + print(f'NPC {npc_id} finished action {action_type} with the result {result}.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/npc/onNpcActionSent.md b/docs/defaultEvents/npc/onNpcActionSent.md similarity index 79% rename from python/docs/defaultEvents/npc/onNpcActionSent.md rename to docs/defaultEvents/npc/onNpcActionSent.md index e7e328f..a845011 100644 --- a/python/docs/defaultEvents/npc/onNpcActionSent.md +++ b/docs/defaultEvents/npc/onNpcActionSent.md @@ -12,9 +12,9 @@ Original: [onNpcActionSent](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onNpcActionSent') -def onActionSent(**kwargs): - print(f'NPC {kwargs['npc_id']} changed host from {kwargs['previous_id']} to {kwargs['current_id']}.') +async def onActionSent(npc_id, action_type, action_id): + print(f'NPC {npc_id} sent action {action_id}.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/npc/onNpcChangeHostPlayer.md b/docs/defaultEvents/npc/onNpcChangeHostPlayer.md similarity index 81% rename from python/docs/defaultEvents/npc/onNpcChangeHostPlayer.md rename to docs/defaultEvents/npc/onNpcChangeHostPlayer.md index 6e929e6..1a8bb0f 100644 --- a/python/docs/defaultEvents/npc/onNpcChangeHostPlayer.md +++ b/docs/defaultEvents/npc/onNpcChangeHostPlayer.md @@ -12,9 +12,9 @@ Original: [onNpcChangeHostPlayer](https://gothicmultiplayerteam.gitlab.io/docs/0 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onNpcChangeHostPlayer') -def onChangeHostPlayer(**kwargs): - print(f'NPC {kwargs['npc_id']} sent {kwargs['action_type']} to all players.') +async def onChangeHostPlayer(npc_id, previous_id, current_id): + print(f'NPC {npc_id} changed host to {current_id}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/npc/onNpcCreated.md b/docs/defaultEvents/npc/onNpcCreated.md similarity index 79% rename from python/docs/defaultEvents/npc/onNpcCreated.md rename to docs/defaultEvents/npc/onNpcCreated.md index 9ecad00..00e1000 100644 --- a/python/docs/defaultEvents/npc/onNpcCreated.md +++ b/docs/defaultEvents/npc/onNpcCreated.md @@ -10,9 +10,9 @@ Original: [onNpcCreated](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onNpcCreated') -def onNpcCreate(**kwargs): - print(f'NPC {kwargs['npc_id']} has been created.') +async def onNpcCreate(npc_id): + print(f'NPC {npc_id} has been created.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/npc/onNpcDestroyed.md b/docs/defaultEvents/npc/onNpcDestroyed.md similarity index 78% rename from python/docs/defaultEvents/npc/onNpcDestroyed.md rename to docs/defaultEvents/npc/onNpcDestroyed.md index ba6c21d..ce3371e 100644 --- a/python/docs/defaultEvents/npc/onNpcDestroyed.md +++ b/docs/defaultEvents/npc/onNpcDestroyed.md @@ -10,9 +10,9 @@ Original: [onNpcDestroyed](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/sc ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onNpcDestroyed') -def onNpcDestroy(**kwargs): - print(f'NPC {kwargs['npc_id']} has been destroyed.') +async def onNpcDestroy(npc_id): + print(f'NPC {npc_id} has been destroyed.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeColor.md b/docs/defaultEvents/player/onPlayerChangeColor.md similarity index 70% rename from python/docs/defaultEvents/player/onPlayerChangeColor.md rename to docs/defaultEvents/player/onPlayerChangeColor.md index 7017fc5..641838a 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeColor.md +++ b/docs/defaultEvents/player/onPlayerChangeColor.md @@ -12,14 +12,11 @@ Original: [onPlayerChangeColor](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeColor') -def onChangeColor(**kwargs): - # Slicing out playerid and converting from {r: num, g: num, b: num} - # to (num, num, num) - rgbColor = tuple(list(kwargs.values())[1:]) - # Formating rgb into hex color +async def onChangeColor(playerid, r, g, b): + rgbColor = tuple(r, g, b) hexColor = '#%02x%02x%02x' % rgbColor - print(f'Player {kwargs['playerid']} changed his color to {hexColor}') + print(f'Player {playerid} changed his color to {hexColor}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeFocus.md b/docs/defaultEvents/player/onPlayerChangeFocus.md similarity index 73% rename from python/docs/defaultEvents/player/onPlayerChangeFocus.md rename to docs/defaultEvents/player/onPlayerChangeFocus.md index ef6dfbf..a9a5ac0 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeFocus.md +++ b/docs/defaultEvents/player/onPlayerChangeFocus.md @@ -11,13 +11,12 @@ Original: [onPlayerChangeFocus](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeFocus') -def onChangeFocus(**kwargs): - focusId = kwargs['newFocusId'] - if focusId != -1: - print(f'Player {kwargs['playerid']} is looking at {focusId}') +async def onChangeFocus(playerid, oldFocusId, newFocusId): + if newFocusId != -1: + print(f'Player {playerid} is looking at {newFocusId}') else - print(f'Player {kwargs['playerid']} is looking at... who?') + print(f'Player {playerid} is looking at... who?') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeHealth.md b/docs/defaultEvents/player/onPlayerChangeHealth.md similarity index 60% rename from python/docs/defaultEvents/player/onPlayerChangeHealth.md rename to docs/defaultEvents/player/onPlayerChangeHealth.md index 250bca1..f1796bb 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeHealth.md +++ b/docs/defaultEvents/player/onPlayerChangeHealth.md @@ -6,14 +6,14 @@ Original: [onPlayerChangeHealth](https://gothicmultiplayerteam.gitlab.io/docs/0. ## Parameters * `dict` **kwargs**: * `int` **playerid**: the id of the player whose health points gets changed. - * `int` **oldHP**: the previous health points of the player. - * `int` **newHP**: the new health points of the player. + * `int` **previous**: the previous health points of the player. + * `int` **current**: the new health points of the player. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeHealth') -def onChangeHealth(**kwargs): - print(f'Player {kwargs['playerid']} changed health: {kwargs['oldHP']} -> {kwargs['newHP']}') +async def onChangeHealth(playerid, previous, current): + print(f'Player {playerid} changed health: {previous} -> {current}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeMana.md b/docs/defaultEvents/player/onPlayerChangeMana.md similarity index 59% rename from python/docs/defaultEvents/player/onPlayerChangeMana.md rename to docs/defaultEvents/player/onPlayerChangeMana.md index c53c01d..17ff417 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeMana.md +++ b/docs/defaultEvents/player/onPlayerChangeMana.md @@ -6,14 +6,14 @@ Original: [onPlayerChangeMana](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Parameters * `dict` **kwargs**: * `int` **playerid**: the id of the player mana points gets changed. - * `int` **oldMP**: the previous mana points of the player. - * `int` **newMP**: the new mana points of the player. + * `int` **previous**: the previous mana points of the player. + * `int` **current**: the new mana points of the player. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeMana') -def onChangeMana(**kwargs): - print(f'Player {kwargs['playerid']} changed mana: {kwargs['oldMP']} -> {kwargs['newMP']}') +async def onChangeMana(playerid, previous, current): + print(f'Player {playerid} changed mana: {previous} -> {current}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeMaxHealth.md b/docs/defaultEvents/player/onPlayerChangeMaxHealth.md similarity index 60% rename from python/docs/defaultEvents/player/onPlayerChangeMaxHealth.md rename to docs/defaultEvents/player/onPlayerChangeMaxHealth.md index 33b8024..015b984 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeMaxHealth.md +++ b/docs/defaultEvents/player/onPlayerChangeMaxHealth.md @@ -6,14 +6,14 @@ Original: [onPlayerChangeMaxHealth](https://gothicmultiplayerteam.gitlab.io/docs ## Parameters * `dict` **kwargs**: * `int` **playerid**: the id of the player whose maxium health points gets changed. - * `int` **oldMaxHP**: the previous maximum health points of the player. - * `int` **newMaxHP**: the new maximum health points of the player. + * `int` **previous**: the previous maximum health points of the player. + * `int` **current**: the new maximum health points of the player. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeMaxHealth') -def onChangeMaxHealth(**kwargs): - print(f'Player {kwargs['playerid']} changed maximum health: {kwargs['oldMaxHP']} -> {kwargs['newMaxHP']}') +async def onChangeMaxHealth(playerid, previous, current): + print(f'Player {playerid} changed maximum health: {previous} -> {current}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeMaxMana.md b/docs/defaultEvents/player/onPlayerChangeMaxMana.md similarity index 60% rename from python/docs/defaultEvents/player/onPlayerChangeMaxMana.md rename to docs/defaultEvents/player/onPlayerChangeMaxMana.md index e68ffc0..e807125 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeMaxMana.md +++ b/docs/defaultEvents/player/onPlayerChangeMaxMana.md @@ -6,14 +6,14 @@ Original: [onPlayerChangeMaxMana](https://gothicmultiplayerteam.gitlab.io/docs/0 ## Parameters * `dict` **kwargs**: * `int` **playerid**: the id of the player maximum mana points gets changed. - * `int` **oldMaxMP**: the previous maximum mana points of the player. - * `int` **newMaxMP**: the new maximum mana points of the player. + * `int` **previous**: the previous maximum mana points of the player. + * `int` **current**: the new maximum mana points of the player. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeMaxMana') -def onChangeMaxMana(**kwargs): - print(f'Player {kwargs['playerid']} changed maximum mana: {kwargs['oldMaxMP']} -> {kwargs['newMaxMP']}') +async def onChangeMaxMana(playerid, previous, current): + print(f'Player {playerid} changed maximum mana: {previous} -> {current}') ``` \ No newline at end of file diff --git a/docs/defaultEvents/player/onPlayerChangeWeaponMode.md b/docs/defaultEvents/player/onPlayerChangeWeaponMode.md new file mode 100644 index 0000000..f897c93 --- /dev/null +++ b/docs/defaultEvents/player/onPlayerChangeWeaponMode.md @@ -0,0 +1,19 @@ +# `event` onPlayerChangeWeaponMode +This event is triggered when player changes the weapon mode. + +Original: [onPlayerChangeWeaponMode](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/player/onPlayerChangeWeaponMode/) + +## Parameters +* `dict` **kwargs**: + * `int` **playerid**: the id of the player which changes the weapon mode. + * `int` **previous**: the old weapon mode which was used by the player. For more information see [Weapon mode](../../constants/weapon-mode.md). + * `int` **current**: the new weapon mode in which player is currently using. For more information see [Weapon mode](../../constants/weapon-mode.md). + +## Usage +```python +import pyg2o as g2o + +@g2o.event('onPlayerChangeWeaponMode') +async def onChangeWM(playerid, previous, current): + print(f'Player {playerid} changed wm: {previous} -> {current}') +``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeWorld.md b/docs/defaultEvents/player/onPlayerChangeWorld.md similarity index 81% rename from python/docs/defaultEvents/player/onPlayerChangeWorld.md rename to docs/defaultEvents/player/onPlayerChangeWorld.md index 44c08b1..ca78f54 100644 --- a/python/docs/defaultEvents/player/onPlayerChangeWorld.md +++ b/docs/defaultEvents/player/onPlayerChangeWorld.md @@ -12,9 +12,9 @@ Original: [onPlayerChangeWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerChangeWorld') -def onChangeWorld(**kwargs): - print(f'Player {kwargs['playerid']} teleported to {kwargs['world']} at {kwargs['waypoint']}') +async def onChangeWorld(playerid, world, waypoint): + print(f'Player {playerid} teleported to {world} at {waypoint}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerCommand.md b/docs/defaultEvents/player/onPlayerCommand.md similarity index 79% rename from python/docs/defaultEvents/player/onPlayerCommand.md rename to docs/defaultEvents/player/onPlayerCommand.md index c1977ff..8950aee 100644 --- a/python/docs/defaultEvents/player/onPlayerCommand.md +++ b/docs/defaultEvents/player/onPlayerCommand.md @@ -12,13 +12,13 @@ Original: [onPlayerCommand](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerCommand') -def onCommand(**kwargs): +async def onCommand(playerid, command, params): # Spliting and formating params - params = [eval(x) if not x.isalpha() else x for kwargs['params'].split()] + params = [eval(x) if not x.isalpha() else x for params.split()] - if kwargs['command'] == 'add' and len(params) == 2: + if command == 'add' and len(params) == 2: print('Sum is: ', params[0] + params[1]) # /add 5 10 -> output: Sum is 15 ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerDamage.md b/docs/defaultEvents/player/onPlayerDamage.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerDamage.md rename to docs/defaultEvents/player/onPlayerDamage.md index 017cef0..9119e66 100644 --- a/python/docs/defaultEvents/player/onPlayerDamage.md +++ b/docs/defaultEvents/player/onPlayerDamage.md @@ -12,10 +12,9 @@ Original: [onPlayerDamage](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/sc ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerDamage') -def onDamage(**kwargs): - desc = kwargs['description'] - print(f'Ouch! Player {kwargs['playerid']} just received {desc.damage} damage.') +async def onDamage(playerid, killerid, description): + print(f'Ouch! Player {playerid} just received {description.damage} damage.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerDead.md b/docs/defaultEvents/player/onPlayerDead.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerDead.md rename to docs/defaultEvents/player/onPlayerDead.md index 1805ddc..6ab1c04 100644 --- a/python/docs/defaultEvents/player/onPlayerDead.md +++ b/docs/defaultEvents/player/onPlayerDead.md @@ -10,9 +10,9 @@ Original: [onPlayerDead](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerDead') -def onDead(**kwargs): - print(kwargs['playerid'], 'killed by', kwargs['killerid']) +async def onDead(playerid, killerid): + print(playerid, 'killed by', killerid) ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerDisconnect.md b/docs/defaultEvents/player/onPlayerDisconnect.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerDisconnect.md rename to docs/defaultEvents/player/onPlayerDisconnect.md index 6591c4c..2cb50c3 100644 --- a/python/docs/defaultEvents/player/onPlayerDisconnect.md +++ b/docs/defaultEvents/player/onPlayerDisconnect.md @@ -10,9 +10,9 @@ Original: [onPlayerDisconnect](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerDisconnect') -def onDC(**kwargs): - print(f'Player {kwargs['playerid']} has left from the server') +async def onDC(playerid, reason): + print(f'Player {playerid} has left from the server') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerDropItem.md b/docs/defaultEvents/player/onPlayerDropItem.md similarity index 79% rename from python/docs/defaultEvents/player/onPlayerDropItem.md rename to docs/defaultEvents/player/onPlayerDropItem.md index 578b622..b933634 100644 --- a/python/docs/defaultEvents/player/onPlayerDropItem.md +++ b/docs/defaultEvents/player/onPlayerDropItem.md @@ -11,10 +11,9 @@ Original: [onPlayerDropItem](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/ ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerDropItem') -def onDropItem(**kwargs): - item = itemm['itemGround'] - print(f'Player {kwargs['playerid']} dropped {item.instance} x{item.amount}') +async def onDropItem(playerid, itemGround): + print(f'Player {playerid} dropped {itemGround.instance} x{itemGround.amount}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEnterWorld.md b/docs/defaultEvents/player/onPlayerEnterWorld.md similarity index 81% rename from python/docs/defaultEvents/player/onPlayerEnterWorld.md rename to docs/defaultEvents/player/onPlayerEnterWorld.md index 23c9c09..8e4a843 100644 --- a/python/docs/defaultEvents/player/onPlayerEnterWorld.md +++ b/docs/defaultEvents/player/onPlayerEnterWorld.md @@ -10,9 +10,9 @@ Original: [onPlayerEnterWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEnterWorld') -def onEnterWorld(**kwargs): - print(f'Player {kwargs['playerid']} entered world {kwargs['world']}') +async def onEnterWorld(playerid, world): + print(f'Player {playerid} entered world {world}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipAmulet.md b/docs/defaultEvents/player/onPlayerEquipAmulet.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipAmulet.md rename to docs/defaultEvents/player/onPlayerEquipAmulet.md index 62dff20..527c87c 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipAmulet.md +++ b/docs/defaultEvents/player/onPlayerEquipAmulet.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipAmulet](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipAmulet') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipArmor.md b/docs/defaultEvents/player/onPlayerEquipArmor.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipArmor.md rename to docs/defaultEvents/player/onPlayerEquipArmor.md index 6854e2a..29350cc 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipArmor.md +++ b/docs/defaultEvents/player/onPlayerEquipArmor.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipArmor](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipArmor') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipBelt.md b/docs/defaultEvents/player/onPlayerEquipBelt.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipBelt.md rename to docs/defaultEvents/player/onPlayerEquipBelt.md index 469bf79..ca41ee8 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipBelt.md +++ b/docs/defaultEvents/player/onPlayerEquipBelt.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipBelt](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipBelt') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipHandItem.md b/docs/defaultEvents/player/onPlayerEquipHandItem.md similarity index 84% rename from python/docs/defaultEvents/player/onPlayerEquipHandItem.md rename to docs/defaultEvents/player/onPlayerEquipHandItem.md index 04437f8..aefa5c0 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipHandItem.md +++ b/docs/defaultEvents/player/onPlayerEquipHandItem.md @@ -11,9 +11,9 @@ Original: [onPlayerEquipHandItem](https://gothicmultiplayerteam.gitlab.io/docs/0 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipHandItem') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} has {kwargs['instance']}, used hand with id {kwargs['hand']}') +async def onEquip(playerid, hand, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipHelmet.md b/docs/defaultEvents/player/onPlayerEquipHelmet.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipHelmet.md rename to docs/defaultEvents/player/onPlayerEquipHelmet.md index 6d11b31..5b16101 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipHelmet.md +++ b/docs/defaultEvents/player/onPlayerEquipHelmet.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipHelmet](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipHelmet') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md b/docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md rename to docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md index 41a7ecc..fe0e556 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md +++ b/docs/defaultEvents/player/onPlayerEquipMeleeWeapon.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipMeleeWeapon](https://gothicmultiplayerteam.gitlab.io/doc ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipMeleeWeapon') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipRangedWeapon.md b/docs/defaultEvents/player/onPlayerEquipRangedWeapon.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerEquipRangedWeapon.md rename to docs/defaultEvents/player/onPlayerEquipRangedWeapon.md index 0315a9b..9b67d70 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipRangedWeapon.md +++ b/docs/defaultEvents/player/onPlayerEquipRangedWeapon.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipRangedWeapon](https://gothicmultiplayerteam.gitlab.io/do ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipRangedWeapon') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipRing.md b/docs/defaultEvents/player/onPlayerEquipRing.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipRing.md rename to docs/defaultEvents/player/onPlayerEquipRing.md index 0fd08e6..cb91174 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipRing.md +++ b/docs/defaultEvents/player/onPlayerEquipRing.md @@ -11,9 +11,9 @@ Original: [onPlayerEquipRing](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipRing') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} has {kwargs['instance']}, used hand with id {kwargs['hand']}') +async def onEquip(playerid, hand, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipShield.md b/docs/defaultEvents/player/onPlayerEquipShield.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerEquipShield.md rename to docs/defaultEvents/player/onPlayerEquipShield.md index 2098ef0..bf6245f 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipShield.md +++ b/docs/defaultEvents/player/onPlayerEquipShield.md @@ -10,9 +10,9 @@ Original: [onPlayerEquipShield](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerEquipShield') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}') +async def onEquip(playerid, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerEquipSpell.md b/docs/defaultEvents/player/onPlayerEquipSpell.md similarity index 81% rename from python/docs/defaultEvents/player/onPlayerEquipSpell.md rename to docs/defaultEvents/player/onPlayerEquipSpell.md index c4cc779..c90de19 100644 --- a/python/docs/defaultEvents/player/onPlayerEquipSpell.md +++ b/docs/defaultEvents/player/onPlayerEquipSpell.md @@ -11,9 +11,9 @@ Original: [onPlayerEquipSpell](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerSpell') -def onEquip(**kwargs): - print(f'Player {kwargs['playerid']} equipped spell {kwargs['instance']} at slot {kwargs['slotId']}') +async def onEquip(playerid, slotId, instance): + print(f'Player {playerid} equipped {instance}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerJoin.md b/docs/defaultEvents/player/onPlayerJoin.md similarity index 77% rename from python/docs/defaultEvents/player/onPlayerJoin.md rename to docs/defaultEvents/player/onPlayerJoin.md index db1ff15..630702d 100644 --- a/python/docs/defaultEvents/player/onPlayerJoin.md +++ b/docs/defaultEvents/player/onPlayerJoin.md @@ -9,9 +9,9 @@ Original: [onPlayerJoin](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scri ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerJoin') -def onJoin(**kwargs): - print(kwargs['playerid'], 'joined to the server.') +async def onJoin(playerid): + print(pyg2o.getPlayerName(playerid), ' joined to the server.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerMessage.md b/docs/defaultEvents/player/onPlayerMessage.md similarity index 79% rename from python/docs/defaultEvents/player/onPlayerMessage.md rename to docs/defaultEvents/player/onPlayerMessage.md index a94cf0b..63a4792 100644 --- a/python/docs/defaultEvents/player/onPlayerMessage.md +++ b/docs/defaultEvents/player/onPlayerMessage.md @@ -10,9 +10,9 @@ Original: [onPlayerMessage](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerMessage') -def onMessage(**kwargs): - print(kwargs['playerid'], 'says', kwargs['message']) +async def onMessage(playerid, message): + print(pyg2o.getPlayerName(playerid), ' says ', message) ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerMobInteract.md b/docs/defaultEvents/player/onPlayerMobInteract.md similarity index 83% rename from python/docs/defaultEvents/player/onPlayerMobInteract.md rename to docs/defaultEvents/player/onPlayerMobInteract.md index c8e28d1..c7cb3d7 100644 --- a/python/docs/defaultEvents/player/onPlayerMobInteract.md +++ b/docs/defaultEvents/player/onPlayerMobInteract.md @@ -10,10 +10,10 @@ Original: [onPlayerMobInteract](https://gothicmultiplayerteam.gitlab.io/docs/0.3 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerMobInteract') -def onMobInteract(**kwargs): - if kwargs['to'] == 1: - print(kwargs['playerid'], 'started interaction with the MOB') +async def onMobInteract(playerid, from, to): + if to == 1: + print(playerid, 'started interaction with the MOB') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerRespawn.md b/docs/defaultEvents/player/onPlayerRespawn.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerRespawn.md rename to docs/defaultEvents/player/onPlayerRespawn.md index a8f0656..8ad5c9d 100644 --- a/python/docs/defaultEvents/player/onPlayerRespawn.md +++ b/docs/defaultEvents/player/onPlayerRespawn.md @@ -9,9 +9,9 @@ Original: [onPlayerRespawn](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/s ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerRespawn') -def onRespawn(**kwargs): - print(kwargs['playerid'], 'respawned.') +async def onRespawn(playerid): + print(playerid, 'respawned.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerShoot.md b/docs/defaultEvents/player/onPlayerShoot.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerShoot.md rename to docs/defaultEvents/player/onPlayerShoot.md index eac507c..6a78ca7 100644 --- a/python/docs/defaultEvents/player/onPlayerShoot.md +++ b/docs/defaultEvents/player/onPlayerShoot.md @@ -10,9 +10,9 @@ Original: [onPlayerShoot](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/scr ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerShoot') -def onShoot(**kwargs): - print(kwargs['playerid'], 'made a shot.') +async def onShoot(playerid, munition): + print(playerid, 'made a shot.') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerSpellCast.md b/docs/defaultEvents/player/onPlayerSpellCast.md similarity index 86% rename from python/docs/defaultEvents/player/onPlayerSpellCast.md rename to docs/defaultEvents/player/onPlayerSpellCast.md index c39c5c0..8458d6f 100644 --- a/python/docs/defaultEvents/player/onPlayerSpellCast.md +++ b/docs/defaultEvents/player/onPlayerSpellCast.md @@ -15,9 +15,9 @@ Original: [onPlayerSpellCast](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0 ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerSpellCast') -def onSpellCast(**kwargs): - print(kwargs['player'], 'casted a spell', kwargs['instance']) +async def onSpellCast(playerid, instance, spellLevel): + print(playerid, 'casted a spell', instance) ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerSpellSetup.md b/docs/defaultEvents/player/onPlayerSpellSetup.md similarity index 80% rename from python/docs/defaultEvents/player/onPlayerSpellSetup.md rename to docs/defaultEvents/player/onPlayerSpellSetup.md index 5afaccb..abb500b 100644 --- a/python/docs/defaultEvents/player/onPlayerSpellSetup.md +++ b/docs/defaultEvents/player/onPlayerSpellSetup.md @@ -10,9 +10,9 @@ Original: [onPlayerSpellSetup](https://gothicmultiplayerteam.gitlab.io/docs/0.3. ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerSpellSetup') -def onSpellSetup(**kwargs): - print(kwargs['player'], 'setuped a spell', kwargs['instance']) +async def onSpellSetup(playerid, instance): + print(playerid, 'setuped a spell', instance) ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerTakeItem.md b/docs/defaultEvents/player/onPlayerTakeItem.md similarity index 85% rename from python/docs/defaultEvents/player/onPlayerTakeItem.md rename to docs/defaultEvents/player/onPlayerTakeItem.md index 31acf84..cd6addb 100644 --- a/python/docs/defaultEvents/player/onPlayerTakeItem.md +++ b/docs/defaultEvents/player/onPlayerTakeItem.md @@ -14,10 +14,9 @@ Original: [onPlayerTakeItem](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/ ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerTakeItem') -def onTakeItem(**kwargs): - item = itemm['itemGround'] - print(f'Player {kwargs['playerid']} took {item.instance} x{item.amount}') +async def onTakeItem(playerid, itemGround): + print(f'Player {playerid} took {itemGround.instance} x{itemGround.amount}') ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerTeleport.md b/docs/defaultEvents/player/onPlayerTeleport.md similarity index 82% rename from python/docs/defaultEvents/player/onPlayerTeleport.md rename to docs/defaultEvents/player/onPlayerTeleport.md index 3a7a91f..3ae38fe 100644 --- a/python/docs/defaultEvents/player/onPlayerTeleport.md +++ b/docs/defaultEvents/player/onPlayerTeleport.md @@ -10,9 +10,9 @@ Original: [onPlayerTeleport](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/ ## Usage ```python -import g2o +import pyg2o as g2o @g2o.event('onPlayerTeleport') -def onTeleport(**kwargs): - print(kwargs['player'], 'teleported to', kwargs['vobName']) +async def onTeleport(playerid, vobName): + print(playerid, 'teleported to', vobName) ``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerToggleFaceAni.md b/docs/defaultEvents/player/onPlayerToggleFaceAni.md similarity index 84% rename from python/docs/defaultEvents/player/onPlayerToggleFaceAni.md rename to docs/defaultEvents/player/onPlayerToggleFaceAni.md index 702e1b9..51c472b 100644 --- a/python/docs/defaultEvents/player/onPlayerToggleFaceAni.md +++ b/docs/defaultEvents/player/onPlayerToggleFaceAni.md @@ -14,7 +14,7 @@ Original: [onPlayerToggleFaceAni](https://gothicmultiplayerteam.gitlab.io/docs/0 import g2o @g2o.event('onPlayerToggleFaceAni') -def onToggleFA(**kwargs): - if kwargs['toggle']: - print(kwargs['player'], 'started face ani',kwargs['aniName']) +async def onToggleFA(playerid, aniName, toggle): + if toggle: + print(playerid, 'started face ani', aniName) ``` \ No newline at end of file diff --git a/docs/functions/chat/sendMessageToAll.md b/docs/functions/chat/sendMessageToAll.md new file mode 100644 index 0000000..7abba91 --- /dev/null +++ b/docs/functions/chat/sendMessageToAll.md @@ -0,0 +1,2 @@ +# `function` sendMessageToAll +::: src.pyg2o.functions.chat.sendMessageToAll \ No newline at end of file diff --git a/docs/functions/chat/sendMessageToPlayer.md b/docs/functions/chat/sendMessageToPlayer.md new file mode 100644 index 0000000..a685748 --- /dev/null +++ b/docs/functions/chat/sendMessageToPlayer.md @@ -0,0 +1,2 @@ +# `function` sendMessageToPlayer +::: src.pyg2o.functions.chat.sendMessageToPlayer \ No newline at end of file diff --git a/docs/functions/chat/sendPlayerMessageToAll.md b/docs/functions/chat/sendPlayerMessageToAll.md new file mode 100644 index 0000000..a5ae015 --- /dev/null +++ b/docs/functions/chat/sendPlayerMessageToAll.md @@ -0,0 +1,2 @@ +# `function` sendPlayerMessageToAll +::: src.pyg2o.functions.chat.sendPlayerMessageToAll \ No newline at end of file diff --git a/docs/functions/chat/sendPlayerMessageToPlayer.md b/docs/functions/chat/sendPlayerMessageToPlayer.md new file mode 100644 index 0000000..1c51460 --- /dev/null +++ b/docs/functions/chat/sendPlayerMessageToPlayer.md @@ -0,0 +1,2 @@ +# `function` sendPlayerMessageToPlayer +::: src.pyg2o.functions.chat.sendPlayerMessageToPlayer \ No newline at end of file diff --git a/docs/functions/event/addEvent.md b/docs/functions/event/addEvent.md new file mode 100644 index 0000000..2be33d0 --- /dev/null +++ b/docs/functions/event/addEvent.md @@ -0,0 +1,2 @@ +# `function` addEvent +::: src.pyg2o.functions.event.addEvent \ No newline at end of file diff --git a/docs/functions/event/callEvent.md b/docs/functions/event/callEvent.md new file mode 100644 index 0000000..ce90251 --- /dev/null +++ b/docs/functions/event/callEvent.md @@ -0,0 +1,2 @@ +# `function` callEvent +::: src.pyg2o.functions.event.callEvent \ No newline at end of file diff --git a/docs/functions/event/event.md b/docs/functions/event/event.md new file mode 100644 index 0000000..d2abff5 --- /dev/null +++ b/docs/functions/event/event.md @@ -0,0 +1,2 @@ +# `function` event +::: src.pyg2o.functions.event.event \ No newline at end of file diff --git a/docs/functions/event/removeEvent.md b/docs/functions/event/removeEvent.md new file mode 100644 index 0000000..2a23e87 --- /dev/null +++ b/docs/functions/event/removeEvent.md @@ -0,0 +1,2 @@ +# `function` removeEvent +::: src.pyg2o.functions.event.removeEvent \ No newline at end of file diff --git a/docs/functions/event/removeEventHandler.md b/docs/functions/event/removeEventHandler.md new file mode 100644 index 0000000..2af917a --- /dev/null +++ b/docs/functions/event/removeEventHandler.md @@ -0,0 +1,2 @@ +# `function` removeEventHandler +::: src.pyg2o.functions.event.removeEventHandler \ No newline at end of file diff --git a/docs/functions/event/toggleEvent.md b/docs/functions/event/toggleEvent.md new file mode 100644 index 0000000..d734e0f --- /dev/null +++ b/docs/functions/event/toggleEvent.md @@ -0,0 +1,2 @@ +# `function` toggleEvent +::: src.pyg2o.functions.event.toggleEvent \ No newline at end of file diff --git a/docs/functions/game/exit.md b/docs/functions/game/exit.md new file mode 100644 index 0000000..63eb8a8 --- /dev/null +++ b/docs/functions/game/exit.md @@ -0,0 +1,2 @@ +# `function` exit +::: src.pyg2o.functions.game.exit \ No newline at end of file diff --git a/docs/functions/game/getDayLength.md b/docs/functions/game/getDayLength.md new file mode 100644 index 0000000..00c8ad6 --- /dev/null +++ b/docs/functions/game/getDayLength.md @@ -0,0 +1,2 @@ +# `function` getDayLength +::: src.pyg2o.functions.game.getDayLength \ No newline at end of file diff --git a/docs/functions/game/getHostname.md b/docs/functions/game/getHostname.md new file mode 100644 index 0000000..260f6a4 --- /dev/null +++ b/docs/functions/game/getHostname.md @@ -0,0 +1,2 @@ +# `function` getHostname +::: src.pyg2o.functions.game.getHostname \ No newline at end of file diff --git a/docs/functions/game/getMaxSlots.md b/docs/functions/game/getMaxSlots.md new file mode 100644 index 0000000..b5c1b46 --- /dev/null +++ b/docs/functions/game/getMaxSlots.md @@ -0,0 +1,2 @@ +# `function` getMaxSlots +::: src.pyg2o.functions.game.getMaxSlots \ No newline at end of file diff --git a/docs/functions/game/getPlayersCount.md b/docs/functions/game/getPlayersCount.md new file mode 100644 index 0000000..a7e193b --- /dev/null +++ b/docs/functions/game/getPlayersCount.md @@ -0,0 +1,2 @@ +# `function` getPlayersCount +::: src.pyg2o.functions.game.getPlayersCount \ No newline at end of file diff --git a/docs/functions/game/getServerDescription.md b/docs/functions/game/getServerDescription.md new file mode 100644 index 0000000..c2a91b7 --- /dev/null +++ b/docs/functions/game/getServerDescription.md @@ -0,0 +1,2 @@ +# `function` getServerDescription +::: src.pyg2o.functions.game.getServerDescription \ No newline at end of file diff --git a/docs/functions/game/getServerWorld.md b/docs/functions/game/getServerWorld.md new file mode 100644 index 0000000..20fcc7d --- /dev/null +++ b/docs/functions/game/getServerWorld.md @@ -0,0 +1,2 @@ +# `function` getServerWorld +::: src.pyg2o.functions.game.getServerWorld \ No newline at end of file diff --git a/docs/functions/game/getTime.md b/docs/functions/game/getTime.md new file mode 100644 index 0000000..c4e13c6 --- /dev/null +++ b/docs/functions/game/getTime.md @@ -0,0 +1,2 @@ +# `function` getTime +::: src.pyg2o.functions.game.getTime \ No newline at end of file diff --git a/docs/functions/game/serverLog.md b/docs/functions/game/serverLog.md new file mode 100644 index 0000000..99a9903 --- /dev/null +++ b/docs/functions/game/serverLog.md @@ -0,0 +1,2 @@ +# `function` serverLog +::: src.pyg2o.functions.game.serverLog \ No newline at end of file diff --git a/docs/functions/game/setDayLength.md b/docs/functions/game/setDayLength.md new file mode 100644 index 0000000..18cc6a4 --- /dev/null +++ b/docs/functions/game/setDayLength.md @@ -0,0 +1,2 @@ +# `function` setDayLength +::: src.pyg2o.functions.game.setDayLength \ No newline at end of file diff --git a/docs/functions/game/setServerDescription.md b/docs/functions/game/setServerDescription.md new file mode 100644 index 0000000..4613d6f --- /dev/null +++ b/docs/functions/game/setServerDescription.md @@ -0,0 +1,2 @@ +# `function` setServerDescription +::: src.pyg2o.functions.game.setServerDescription \ No newline at end of file diff --git a/docs/functions/game/setServerWorld.md b/docs/functions/game/setServerWorld.md new file mode 100644 index 0000000..60ecc11 --- /dev/null +++ b/docs/functions/game/setServerWorld.md @@ -0,0 +1,2 @@ +# `function` setServerWorld +::: src.pyg2o.functions.game.setServerWorld \ No newline at end of file diff --git a/docs/functions/game/setTime.md b/docs/functions/game/setTime.md new file mode 100644 index 0000000..0907d93 --- /dev/null +++ b/docs/functions/game/setTime.md @@ -0,0 +1,2 @@ +# `function` setTime +::: src.pyg2o.functions.game.setTime \ No newline at end of file diff --git a/docs/functions/npc/clearNpcActions.md b/docs/functions/npc/clearNpcActions.md new file mode 100644 index 0000000..4224d04 --- /dev/null +++ b/docs/functions/npc/clearNpcActions.md @@ -0,0 +1,2 @@ +# `function` clearNpcActions +::: src.pyg2o.functions.npc.clearNpcActions \ No newline at end of file diff --git a/docs/functions/npc/createNpc.md b/docs/functions/npc/createNpc.md new file mode 100644 index 0000000..eef6e58 --- /dev/null +++ b/docs/functions/npc/createNpc.md @@ -0,0 +1,2 @@ +# `function` createNpc +::: src.pyg2o.functions.npc.createNpc \ No newline at end of file diff --git a/docs/functions/npc/destroyNpc.md b/docs/functions/npc/destroyNpc.md new file mode 100644 index 0000000..105d618 --- /dev/null +++ b/docs/functions/npc/destroyNpc.md @@ -0,0 +1,2 @@ +# `function` destroyNpc +::: src.pyg2o.functions.npc.destroyNpc \ No newline at end of file diff --git a/docs/functions/npc/getNpcAction.md b/docs/functions/npc/getNpcAction.md new file mode 100644 index 0000000..3271f5b --- /dev/null +++ b/docs/functions/npc/getNpcAction.md @@ -0,0 +1,2 @@ +# `function` getNpcAction +::: src.pyg2o.functions.npc.getNpcAction \ No newline at end of file diff --git a/docs/functions/npc/getNpcActions.md b/docs/functions/npc/getNpcActions.md new file mode 100644 index 0000000..81480ab --- /dev/null +++ b/docs/functions/npc/getNpcActions.md @@ -0,0 +1,2 @@ +# `function` getNpcActions +::: src.pyg2o.functions.npc.getNpcActions \ No newline at end of file diff --git a/docs/functions/npc/getNpcActionsCount.md b/docs/functions/npc/getNpcActionsCount.md new file mode 100644 index 0000000..9f23287 --- /dev/null +++ b/docs/functions/npc/getNpcActionsCount.md @@ -0,0 +1,2 @@ +# `function` getNpcActionsCount +::: src.pyg2o.functions.npc.getNpcActionsCount \ No newline at end of file diff --git a/docs/functions/npc/getNpcHostPlayer.md b/docs/functions/npc/getNpcHostPlayer.md new file mode 100644 index 0000000..b4c5d84 --- /dev/null +++ b/docs/functions/npc/getNpcHostPlayer.md @@ -0,0 +1,2 @@ +# `function` getNpcHostPlayer +::: src.pyg2o.functions.npc.getNpcHostPlayer \ No newline at end of file diff --git a/docs/functions/npc/getNpcLastActionId.md b/docs/functions/npc/getNpcLastActionId.md new file mode 100644 index 0000000..0ab0cde --- /dev/null +++ b/docs/functions/npc/getNpcLastActionId.md @@ -0,0 +1,2 @@ +# `function` getNpcLastActionId +::: src.pyg2o.functions.npc.getNpcLastActionId \ No newline at end of file diff --git a/docs/functions/npc/isNpc.md b/docs/functions/npc/isNpc.md new file mode 100644 index 0000000..34939e2 --- /dev/null +++ b/docs/functions/npc/isNpc.md @@ -0,0 +1,2 @@ +# `function` isNpc +::: src.pyg2o.functions.npc.isNpc \ No newline at end of file diff --git a/docs/functions/npc/isNpcActionFinished.md b/docs/functions/npc/isNpcActionFinished.md new file mode 100644 index 0000000..c8f43b9 --- /dev/null +++ b/docs/functions/npc/isNpcActionFinished.md @@ -0,0 +1,2 @@ +# `function` isNpcActionFinished +::: src.pyg2o.functions.npc.isNpcActionFinished \ No newline at end of file diff --git a/docs/functions/npc/npcAttackMelee.md b/docs/functions/npc/npcAttackMelee.md new file mode 100644 index 0000000..2cb52df --- /dev/null +++ b/docs/functions/npc/npcAttackMelee.md @@ -0,0 +1,2 @@ +# `function` npcAttackMelee +::: src.pyg2o.functions.npc.npcAttackMelee \ No newline at end of file diff --git a/docs/functions/npc/npcAttackRanged.md b/docs/functions/npc/npcAttackRanged.md new file mode 100644 index 0000000..b3b751d --- /dev/null +++ b/docs/functions/npc/npcAttackRanged.md @@ -0,0 +1,2 @@ +# `function` npcAttackRanged +::: src.pyg2o.functions.npc.npcAttackRanged \ No newline at end of file diff --git a/docs/functions/npc/npcSpellCast.md b/docs/functions/npc/npcSpellCast.md new file mode 100644 index 0000000..2944f58 --- /dev/null +++ b/docs/functions/npc/npcSpellCast.md @@ -0,0 +1,2 @@ +# `function` npcSpellCast +::: src.pyg2o.functions.npc.npcSpellCast \ No newline at end of file diff --git a/docs/functions/npc/npcUseClosestMob.md b/docs/functions/npc/npcUseClosestMob.md new file mode 100644 index 0000000..7bb175a --- /dev/null +++ b/docs/functions/npc/npcUseClosestMob.md @@ -0,0 +1,2 @@ +# `function` npcUseClosestMob +::: src.pyg2o.functions.npc.npcUseClosestMob \ No newline at end of file diff --git a/docs/functions/npc/setNpcHostPlayer.md b/docs/functions/npc/setNpcHostPlayer.md new file mode 100644 index 0000000..038a3ed --- /dev/null +++ b/docs/functions/npc/setNpcHostPlayer.md @@ -0,0 +1,2 @@ +# `function` setNpcHostPlayer +::: src.pyg2o.functions.npc.setNpcHostPlayer \ No newline at end of file diff --git a/docs/functions/player/addBan.md b/docs/functions/player/addBan.md new file mode 100644 index 0000000..47b8910 --- /dev/null +++ b/docs/functions/player/addBan.md @@ -0,0 +1,2 @@ +#`function` addBan +::: src.pyg2o.functions.player.addBan \ No newline at end of file diff --git a/docs/functions/player/applyPlayerOverlay.md b/docs/functions/player/applyPlayerOverlay.md new file mode 100644 index 0000000..48a6524 --- /dev/null +++ b/docs/functions/player/applyPlayerOverlay.md @@ -0,0 +1,2 @@ +#`function` applyPlayerOverlay +::: src.pyg2o.functions.player.applyPlayerOverlay \ No newline at end of file diff --git a/docs/functions/player/ban.md b/docs/functions/player/ban.md new file mode 100644 index 0000000..30aafa1 --- /dev/null +++ b/docs/functions/player/ban.md @@ -0,0 +1,2 @@ +#`function` ban +::: src.pyg2o.functions.player.ban \ No newline at end of file diff --git a/docs/functions/player/drawWeapon.md b/docs/functions/player/drawWeapon.md new file mode 100644 index 0000000..9b0cd5c --- /dev/null +++ b/docs/functions/player/drawWeapon.md @@ -0,0 +1,2 @@ +#`function` drawWeapon +::: src.pyg2o.functions.player.drawWeapon \ No newline at end of file diff --git a/docs/functions/player/equipItem.md b/docs/functions/player/equipItem.md new file mode 100644 index 0000000..800a592 --- /dev/null +++ b/docs/functions/player/equipItem.md @@ -0,0 +1,2 @@ +#`function` equipItem +::: src.pyg2o.functions.player.equipItem \ No newline at end of file diff --git a/docs/functions/player/getPlayerAmulet.md b/docs/functions/player/getPlayerAmulet.md new file mode 100644 index 0000000..701e7dd --- /dev/null +++ b/docs/functions/player/getPlayerAmulet.md @@ -0,0 +1,2 @@ +#`function` getPlayerAmulet +::: src.pyg2o.functions.player.getPlayerAmulet \ No newline at end of file diff --git a/docs/functions/player/getPlayerAngle.md b/docs/functions/player/getPlayerAngle.md new file mode 100644 index 0000000..97011eb --- /dev/null +++ b/docs/functions/player/getPlayerAngle.md @@ -0,0 +1,2 @@ +#`function` getPlayerAngle +::: src.pyg2o.functions.player.getPlayerAngle \ No newline at end of file diff --git a/docs/functions/player/getPlayerAni.md b/docs/functions/player/getPlayerAni.md new file mode 100644 index 0000000..2354d68 --- /dev/null +++ b/docs/functions/player/getPlayerAni.md @@ -0,0 +1,2 @@ +#`function` getPlayerAni +::: src.pyg2o.functions.player.getPlayerAni \ No newline at end of file diff --git a/docs/functions/player/getPlayerArmor.md b/docs/functions/player/getPlayerArmor.md new file mode 100644 index 0000000..1e9de82 --- /dev/null +++ b/docs/functions/player/getPlayerArmor.md @@ -0,0 +1,2 @@ +#`function` getPlayerArmor +::: src.pyg2o.functions.player.getPlayerArmor \ No newline at end of file diff --git a/docs/functions/player/getPlayerAtVector.md b/docs/functions/player/getPlayerAtVector.md new file mode 100644 index 0000000..3b6e191 --- /dev/null +++ b/docs/functions/player/getPlayerAtVector.md @@ -0,0 +1,2 @@ +#`function` getPlayerAtVector +::: src.pyg2o.functions.player.getPlayerAtVector \ No newline at end of file diff --git a/docs/functions/player/getPlayerBelt.md b/docs/functions/player/getPlayerBelt.md new file mode 100644 index 0000000..76acbd1 --- /dev/null +++ b/docs/functions/player/getPlayerBelt.md @@ -0,0 +1,2 @@ +#`function` getPlayerBelt +::: src.pyg2o.functions.player.getPlayerBelt \ No newline at end of file diff --git a/docs/functions/player/getPlayerCameraPosition.md b/docs/functions/player/getPlayerCameraPosition.md new file mode 100644 index 0000000..42e8632 --- /dev/null +++ b/docs/functions/player/getPlayerCameraPosition.md @@ -0,0 +1,2 @@ +#`function` getPlayerCameraPosition +::: src.pyg2o.functions.player.getPlayerCameraPosition \ No newline at end of file diff --git a/docs/functions/player/getPlayerCollision.md b/docs/functions/player/getPlayerCollision.md new file mode 100644 index 0000000..6dd79a7 --- /dev/null +++ b/docs/functions/player/getPlayerCollision.md @@ -0,0 +1,2 @@ +#`function` getPlayerCollision +::: src.pyg2o.functions.player.getPlayerCollision \ No newline at end of file diff --git a/docs/functions/player/getPlayerColor.md b/docs/functions/player/getPlayerColor.md new file mode 100644 index 0000000..d86b523 --- /dev/null +++ b/docs/functions/player/getPlayerColor.md @@ -0,0 +1,2 @@ +#`function` getPlayerColor +::: src.pyg2o.functions.player.getPlayerColor \ No newline at end of file diff --git a/docs/functions/player/getPlayerContext.md b/docs/functions/player/getPlayerContext.md new file mode 100644 index 0000000..39a6d1c --- /dev/null +++ b/docs/functions/player/getPlayerContext.md @@ -0,0 +1,2 @@ +#`function` getPlayerContext +::: src.pyg2o.functions.player.getPlayerContext \ No newline at end of file diff --git a/docs/functions/player/getPlayerDexterity.md b/docs/functions/player/getPlayerDexterity.md new file mode 100644 index 0000000..40d9471 --- /dev/null +++ b/docs/functions/player/getPlayerDexterity.md @@ -0,0 +1,2 @@ +#`function` getPlayerDexterity +::: src.pyg2o.functions.player.getPlayerDexterity \ No newline at end of file diff --git a/docs/functions/player/getPlayerFaceAnis.md b/docs/functions/player/getPlayerFaceAnis.md new file mode 100644 index 0000000..df0295b --- /dev/null +++ b/docs/functions/player/getPlayerFaceAnis.md @@ -0,0 +1,2 @@ +#`function` getPlayerFaceAnis +::: src.pyg2o.functions.player.getPlayerFaceAnis \ No newline at end of file diff --git a/docs/functions/player/getPlayerFatness.md b/docs/functions/player/getPlayerFatness.md new file mode 100644 index 0000000..6b2f95e --- /dev/null +++ b/docs/functions/player/getPlayerFatness.md @@ -0,0 +1,2 @@ +#`function` getPlayerFatness +::: src.pyg2o.functions.player.getPlayerFatness \ No newline at end of file diff --git a/docs/functions/player/getPlayerFocus.md b/docs/functions/player/getPlayerFocus.md new file mode 100644 index 0000000..27d572a --- /dev/null +++ b/docs/functions/player/getPlayerFocus.md @@ -0,0 +1,2 @@ +#`function` getPlayerFocus +::: src.pyg2o.functions.player.getPlayerFocus \ No newline at end of file diff --git a/docs/functions/player/getPlayerHealth.md b/docs/functions/player/getPlayerHealth.md new file mode 100644 index 0000000..340b6c0 --- /dev/null +++ b/docs/functions/player/getPlayerHealth.md @@ -0,0 +1,2 @@ +#`function` getPlayerHealth +::: src.pyg2o.functions.player.getPlayerHealth \ No newline at end of file diff --git a/docs/functions/player/getPlayerHelmet.md b/docs/functions/player/getPlayerHelmet.md new file mode 100644 index 0000000..afcfd9e --- /dev/null +++ b/docs/functions/player/getPlayerHelmet.md @@ -0,0 +1,2 @@ +#`function` getPlayerHelmet +::: src.pyg2o.functions.player.getPlayerHelmet \ No newline at end of file diff --git a/docs/functions/player/getPlayerIP.md b/docs/functions/player/getPlayerIP.md new file mode 100644 index 0000000..9b7e7d8 --- /dev/null +++ b/docs/functions/player/getPlayerIP.md @@ -0,0 +1,2 @@ +#`function` getPlayerIP +::: src.pyg2o.functions.player.getPlayerIP \ No newline at end of file diff --git a/docs/functions/player/getPlayerInstance.md b/docs/functions/player/getPlayerInstance.md new file mode 100644 index 0000000..a6a65ad --- /dev/null +++ b/docs/functions/player/getPlayerInstance.md @@ -0,0 +1,2 @@ +#`function` getPlayerInstance +::: src.pyg2o.functions.player.getPlayerInstance \ No newline at end of file diff --git a/docs/functions/player/getPlayerInvisible.md b/docs/functions/player/getPlayerInvisible.md new file mode 100644 index 0000000..6743e74 --- /dev/null +++ b/docs/functions/player/getPlayerInvisible.md @@ -0,0 +1,2 @@ +#`function` getPlayerInvisible +::: src.pyg2o.functions.player.getPlayerInvisible \ No newline at end of file diff --git a/docs/functions/player/getPlayerMacAddr.md b/docs/functions/player/getPlayerMacAddr.md new file mode 100644 index 0000000..b7d5f40 --- /dev/null +++ b/docs/functions/player/getPlayerMacAddr.md @@ -0,0 +1,2 @@ +#`function` getPlayerMacAddr +::: src.pyg2o.functions.player.getPlayerMacAddr \ No newline at end of file diff --git a/docs/functions/player/getPlayerMana.md b/docs/functions/player/getPlayerMana.md new file mode 100644 index 0000000..905d716 --- /dev/null +++ b/docs/functions/player/getPlayerMana.md @@ -0,0 +1,2 @@ +#`function` getPlayerMana +::: src.pyg2o.functions.player.getPlayerMana \ No newline at end of file diff --git a/docs/functions/player/getPlayerMaxHealth.md b/docs/functions/player/getPlayerMaxHealth.md new file mode 100644 index 0000000..05bdae7 --- /dev/null +++ b/docs/functions/player/getPlayerMaxHealth.md @@ -0,0 +1,2 @@ +#`function` getPlayerMaxHealth +::: src.pyg2o.functions.player.getPlayerMaxHealth \ No newline at end of file diff --git a/docs/functions/player/getPlayerMaxMana.md b/docs/functions/player/getPlayerMaxMana.md new file mode 100644 index 0000000..13626ad --- /dev/null +++ b/docs/functions/player/getPlayerMaxMana.md @@ -0,0 +1,2 @@ +#`function` getPlayerMaxMana +::: src.pyg2o.functions.player.getPlayerMaxMana \ No newline at end of file diff --git a/docs/functions/player/getPlayerMeleeWeapon.md b/docs/functions/player/getPlayerMeleeWeapon.md new file mode 100644 index 0000000..a8da63d --- /dev/null +++ b/docs/functions/player/getPlayerMeleeWeapon.md @@ -0,0 +1,2 @@ +#`function` getPlayerMeleeWeapon +::: src.pyg2o.functions.player.getPlayerMeleeWeapon \ No newline at end of file diff --git a/docs/functions/player/getPlayerName.md b/docs/functions/player/getPlayerName.md new file mode 100644 index 0000000..f02c11b --- /dev/null +++ b/docs/functions/player/getPlayerName.md @@ -0,0 +1,2 @@ +#`function` getPlayerName +::: src.pyg2o.functions.player.getPlayerName \ No newline at end of file diff --git a/docs/functions/player/getPlayerPing.md b/docs/functions/player/getPlayerPing.md new file mode 100644 index 0000000..fddcd4a --- /dev/null +++ b/docs/functions/player/getPlayerPing.md @@ -0,0 +1,2 @@ +#`function` getPlayerPing +::: src.pyg2o.functions.player.getPlayerPing \ No newline at end of file diff --git a/docs/functions/player/getPlayerPosition.md b/docs/functions/player/getPlayerPosition.md new file mode 100644 index 0000000..bc6fd3f --- /dev/null +++ b/docs/functions/player/getPlayerPosition.md @@ -0,0 +1,2 @@ +#`function` getPlayerPosition +::: src.pyg2o.functions.player.getPlayerPosition \ No newline at end of file diff --git a/docs/functions/player/getPlayerRangedWeapon.md b/docs/functions/player/getPlayerRangedWeapon.md new file mode 100644 index 0000000..f8657af --- /dev/null +++ b/docs/functions/player/getPlayerRangedWeapon.md @@ -0,0 +1,2 @@ +#`function` getPlayerRangedWeapon +::: src.pyg2o.functions.player.getPlayerRangedWeapon \ No newline at end of file diff --git a/docs/functions/player/getPlayerRespawnTime.md b/docs/functions/player/getPlayerRespawnTime.md new file mode 100644 index 0000000..701339a --- /dev/null +++ b/docs/functions/player/getPlayerRespawnTime.md @@ -0,0 +1,2 @@ +#`function` getPlayerRespawnTime +::: src.pyg2o.functions.player.getPlayerRespawnTime \ No newline at end of file diff --git a/docs/functions/player/getPlayerRing.md b/docs/functions/player/getPlayerRing.md new file mode 100644 index 0000000..5ada2c3 --- /dev/null +++ b/docs/functions/player/getPlayerRing.md @@ -0,0 +1,2 @@ +#`function` getPlayerRing +::: src.pyg2o.functions.player.getPlayerRing \ No newline at end of file diff --git a/docs/functions/player/getPlayerScale.md b/docs/functions/player/getPlayerScale.md new file mode 100644 index 0000000..688cdde --- /dev/null +++ b/docs/functions/player/getPlayerScale.md @@ -0,0 +1,2 @@ +#`function` getPlayerScale +::: src.pyg2o.functions.player.getPlayerScale \ No newline at end of file diff --git a/docs/functions/player/getPlayerSerial.md b/docs/functions/player/getPlayerSerial.md new file mode 100644 index 0000000..70fe4cb --- /dev/null +++ b/docs/functions/player/getPlayerSerial.md @@ -0,0 +1,2 @@ +#`function` getPlayerSerial +::: src.pyg2o.functions.player.getPlayerSerial \ No newline at end of file diff --git a/docs/functions/player/getPlayerShield.md b/docs/functions/player/getPlayerShield.md new file mode 100644 index 0000000..2847a44 --- /dev/null +++ b/docs/functions/player/getPlayerShield.md @@ -0,0 +1,2 @@ +#`function` getPlayerShield +::: src.pyg2o.functions.player.getPlayerShield \ No newline at end of file diff --git a/docs/functions/player/getPlayerSkillWeapon.md b/docs/functions/player/getPlayerSkillWeapon.md new file mode 100644 index 0000000..b2efb92 --- /dev/null +++ b/docs/functions/player/getPlayerSkillWeapon.md @@ -0,0 +1,2 @@ +#`function` getPlayerSkillWeapon +::: src.pyg2o.functions.player.getPlayerSkillWeapon \ No newline at end of file diff --git a/docs/functions/player/getPlayerSpell.md b/docs/functions/player/getPlayerSpell.md new file mode 100644 index 0000000..48ff84d --- /dev/null +++ b/docs/functions/player/getPlayerSpell.md @@ -0,0 +1,2 @@ +#`function` getPlayerSpell +::: src.pyg2o.functions.player.getPlayerSpell \ No newline at end of file diff --git a/docs/functions/player/getPlayerStrength.md b/docs/functions/player/getPlayerStrength.md new file mode 100644 index 0000000..6de5b44 --- /dev/null +++ b/docs/functions/player/getPlayerStrength.md @@ -0,0 +1,2 @@ +#`function` getPlayerStrength +::: src.pyg2o.functions.player.getPlayerStrength \ No newline at end of file diff --git a/docs/functions/player/getPlayerTalent.md b/docs/functions/player/getPlayerTalent.md new file mode 100644 index 0000000..2c2e056 --- /dev/null +++ b/docs/functions/player/getPlayerTalent.md @@ -0,0 +1,2 @@ +#`function` getPlayerTalent +::: src.pyg2o.functions.player.getPlayerTalent \ No newline at end of file diff --git a/docs/functions/player/getPlayerUID.md b/docs/functions/player/getPlayerUID.md new file mode 100644 index 0000000..0684e17 --- /dev/null +++ b/docs/functions/player/getPlayerUID.md @@ -0,0 +1,2 @@ +#`function` getPlayerUID +::: src.pyg2o.functions.player.getPlayerUID \ No newline at end of file diff --git a/docs/functions/player/getPlayerVirtualWorld.md b/docs/functions/player/getPlayerVirtualWorld.md new file mode 100644 index 0000000..9bf90d5 --- /dev/null +++ b/docs/functions/player/getPlayerVirtualWorld.md @@ -0,0 +1,2 @@ +#`function` getPlayerVirtualWorld +::: src.pyg2o.functions.player.getPlayerVirtualWorld \ No newline at end of file diff --git a/python/docs/functions/player/unreadySpell.md b/docs/functions/player/getPlayerVisual.md similarity index 50% rename from python/docs/functions/player/unreadySpell.md rename to docs/functions/player/getPlayerVisual.md index af8a8aa..ef1f6f1 100644 --- a/python/docs/functions/player/unreadySpell.md +++ b/docs/functions/player/getPlayerVisual.md @@ -1,2 +1,2 @@ -#`function` unreadySpell -::: g2o.functions.player.unreadySpell \ No newline at end of file +#`function` getPlayerVisual +::: src.pyg2o.functions.player.getPlayerVisual \ No newline at end of file diff --git a/docs/functions/player/getPlayerWeaponMode.md b/docs/functions/player/getPlayerWeaponMode.md new file mode 100644 index 0000000..6db2404 --- /dev/null +++ b/docs/functions/player/getPlayerWeaponMode.md @@ -0,0 +1,2 @@ +#`function` getPlayerWeaponMode +::: src.pyg2o.functions.player.getPlayerWeaponMode \ No newline at end of file diff --git a/docs/functions/player/getPlayerWorld.md b/docs/functions/player/getPlayerWorld.md new file mode 100644 index 0000000..cf7b11b --- /dev/null +++ b/docs/functions/player/getPlayerWorld.md @@ -0,0 +1,2 @@ +#`function` getPlayerWorld +::: src.pyg2o.functions.player.getPlayerWorld \ No newline at end of file diff --git a/docs/functions/player/giveItem.md b/docs/functions/player/giveItem.md new file mode 100644 index 0000000..4f84e28 --- /dev/null +++ b/docs/functions/player/giveItem.md @@ -0,0 +1,2 @@ +#`function` giveItem +::: src.pyg2o.functions.player.giveItem \ No newline at end of file diff --git a/docs/functions/player/hitPlayer.md b/docs/functions/player/hitPlayer.md new file mode 100644 index 0000000..ff92919 --- /dev/null +++ b/docs/functions/player/hitPlayer.md @@ -0,0 +1,2 @@ +#`function` hitPlayer +::: src.pyg2o.functions.player.hitPlayer \ No newline at end of file diff --git a/docs/functions/player/isPlayerConnected.md b/docs/functions/player/isPlayerConnected.md new file mode 100644 index 0000000..ac85b41 --- /dev/null +++ b/docs/functions/player/isPlayerConnected.md @@ -0,0 +1,2 @@ +#`function` isPlayerConnected +::: src.pyg2o.functions.player.isPlayerConnected \ No newline at end of file diff --git a/docs/functions/player/isPlayerDead.md b/docs/functions/player/isPlayerDead.md new file mode 100644 index 0000000..b3d2d0f --- /dev/null +++ b/docs/functions/player/isPlayerDead.md @@ -0,0 +1,2 @@ +#`function` isPlayerDead +::: src.pyg2o.functions.player.isPlayerDead \ No newline at end of file diff --git a/docs/functions/player/isPlayerSpawned.md b/docs/functions/player/isPlayerSpawned.md new file mode 100644 index 0000000..4c90a52 --- /dev/null +++ b/docs/functions/player/isPlayerSpawned.md @@ -0,0 +1,2 @@ +#`function` isPlayerSpawned +::: src.pyg2o.functions.player.isPlayerSpawned \ No newline at end of file diff --git a/docs/functions/player/isPlayerUnconscious.md b/docs/functions/player/isPlayerUnconscious.md new file mode 100644 index 0000000..f39ded9 --- /dev/null +++ b/docs/functions/player/isPlayerUnconscious.md @@ -0,0 +1,2 @@ +#`function` isPlayerUnconscious +::: src.pyg2o.functions.player.isPlayerUnconscious \ No newline at end of file diff --git a/docs/functions/player/kick.md b/docs/functions/player/kick.md new file mode 100644 index 0000000..3e80c57 --- /dev/null +++ b/docs/functions/player/kick.md @@ -0,0 +1,2 @@ +#`function` kick +::: src.pyg2o.functions.player.kick \ No newline at end of file diff --git a/docs/functions/player/playAni.md b/docs/functions/player/playAni.md new file mode 100644 index 0000000..2fb4be1 --- /dev/null +++ b/docs/functions/player/playAni.md @@ -0,0 +1,2 @@ +#`function` playAni +::: src.pyg2o.functions.player.playAni \ No newline at end of file diff --git a/docs/functions/player/playFaceAni.md b/docs/functions/player/playFaceAni.md new file mode 100644 index 0000000..f4546fe --- /dev/null +++ b/docs/functions/player/playFaceAni.md @@ -0,0 +1,2 @@ +#`function` playFaceAni +::: src.pyg2o.functions.player.playFaceAni \ No newline at end of file diff --git a/docs/functions/player/readySpell.md b/docs/functions/player/readySpell.md new file mode 100644 index 0000000..62fb8b1 --- /dev/null +++ b/docs/functions/player/readySpell.md @@ -0,0 +1,2 @@ +#`function` readySpell +::: src.pyg2o.functions.player.readySpell \ No newline at end of file diff --git a/docs/functions/player/removeItem.md b/docs/functions/player/removeItem.md new file mode 100644 index 0000000..ee1d942 --- /dev/null +++ b/docs/functions/player/removeItem.md @@ -0,0 +1,2 @@ +#`function` removeItem +::: src.pyg2o.functions.player.removeItem \ No newline at end of file diff --git a/docs/functions/player/removePlayerOverlay.md b/docs/functions/player/removePlayerOverlay.md new file mode 100644 index 0000000..d97725c --- /dev/null +++ b/docs/functions/player/removePlayerOverlay.md @@ -0,0 +1,2 @@ +#`function` removePlayerOverlay +::: src.pyg2o.functions.player.removePlayerOverlay \ No newline at end of file diff --git a/docs/functions/player/removeWeapon.md b/docs/functions/player/removeWeapon.md new file mode 100644 index 0000000..ac89432 --- /dev/null +++ b/docs/functions/player/removeWeapon.md @@ -0,0 +1,2 @@ +#`function` removeWeapon +::: src.pyg2o.functions.player.removeWeapon \ No newline at end of file diff --git a/docs/functions/player/setPlayerAngle.md b/docs/functions/player/setPlayerAngle.md new file mode 100644 index 0000000..0dcb0c7 --- /dev/null +++ b/docs/functions/player/setPlayerAngle.md @@ -0,0 +1,2 @@ +#`function` setPlayerAngle +::: src.pyg2o.functions.player.setPlayerAngle \ No newline at end of file diff --git a/docs/functions/player/setPlayerCollision.md b/docs/functions/player/setPlayerCollision.md new file mode 100644 index 0000000..9de559b --- /dev/null +++ b/docs/functions/player/setPlayerCollision.md @@ -0,0 +1,2 @@ +#`function` setPlayerCollision +::: src.pyg2o.functions.player.setPlayerCollision \ No newline at end of file diff --git a/docs/functions/player/setPlayerColor.md b/docs/functions/player/setPlayerColor.md new file mode 100644 index 0000000..9dc9397 --- /dev/null +++ b/docs/functions/player/setPlayerColor.md @@ -0,0 +1,2 @@ +#`function` setPlayerColor +::: src.pyg2o.functions.player.setPlayerColor \ No newline at end of file diff --git a/docs/functions/player/setPlayerDexterity.md b/docs/functions/player/setPlayerDexterity.md new file mode 100644 index 0000000..e838ead --- /dev/null +++ b/docs/functions/player/setPlayerDexterity.md @@ -0,0 +1,2 @@ +#`function` setPlayerDexterity +::: src.pyg2o.functions.player.setPlayerDexterity \ No newline at end of file diff --git a/docs/functions/player/setPlayerFatness.md b/docs/functions/player/setPlayerFatness.md new file mode 100644 index 0000000..edc0a41 --- /dev/null +++ b/docs/functions/player/setPlayerFatness.md @@ -0,0 +1,2 @@ +#`function` setPlayerFatness +::: src.pyg2o.functions.player.setPlayerFatness \ No newline at end of file diff --git a/docs/functions/player/setPlayerHealth.md b/docs/functions/player/setPlayerHealth.md new file mode 100644 index 0000000..6641a8c --- /dev/null +++ b/docs/functions/player/setPlayerHealth.md @@ -0,0 +1,2 @@ +#`function` setPlayerHealth +::: src.pyg2o.functions.player.setPlayerHealth \ No newline at end of file diff --git a/docs/functions/player/setPlayerInstance.md b/docs/functions/player/setPlayerInstance.md new file mode 100644 index 0000000..9339968 --- /dev/null +++ b/docs/functions/player/setPlayerInstance.md @@ -0,0 +1,2 @@ +#`function` setPlayerInstance +::: src.pyg2o.functions.player.setPlayerInstance \ No newline at end of file diff --git a/docs/functions/player/setPlayerInvisible.md b/docs/functions/player/setPlayerInvisible.md new file mode 100644 index 0000000..d9b4c70 --- /dev/null +++ b/docs/functions/player/setPlayerInvisible.md @@ -0,0 +1,2 @@ +#`function` setPlayerInvisible +::: src.pyg2o.functions.player.setPlayerInvisible \ No newline at end of file diff --git a/docs/functions/player/setPlayerMana.md b/docs/functions/player/setPlayerMana.md new file mode 100644 index 0000000..8034911 --- /dev/null +++ b/docs/functions/player/setPlayerMana.md @@ -0,0 +1,2 @@ +#`function` setPlayerMana +::: src.pyg2o.functions.player.setPlayerMana \ No newline at end of file diff --git a/docs/functions/player/setPlayerMaxHealth.md b/docs/functions/player/setPlayerMaxHealth.md new file mode 100644 index 0000000..0a6c7c8 --- /dev/null +++ b/docs/functions/player/setPlayerMaxHealth.md @@ -0,0 +1,2 @@ +#`function` setPlayerMaxHealth +::: src.pyg2o.functions.player.setPlayerMaxHealth \ No newline at end of file diff --git a/docs/functions/player/setPlayerMaxMana.md b/docs/functions/player/setPlayerMaxMana.md new file mode 100644 index 0000000..c13bc48 --- /dev/null +++ b/docs/functions/player/setPlayerMaxMana.md @@ -0,0 +1,2 @@ +#`function` setPlayerMaxMana +::: src.pyg2o.functions.player.setPlayerMaxMana \ No newline at end of file diff --git a/docs/functions/player/setPlayerName.md b/docs/functions/player/setPlayerName.md new file mode 100644 index 0000000..ca0279f --- /dev/null +++ b/docs/functions/player/setPlayerName.md @@ -0,0 +1,2 @@ +#`function` setPlayerName +::: src.pyg2o.functions.player.setPlayerName \ No newline at end of file diff --git a/docs/functions/player/setPlayerRespawnTime.md b/docs/functions/player/setPlayerRespawnTime.md new file mode 100644 index 0000000..940c484 --- /dev/null +++ b/docs/functions/player/setPlayerRespawnTime.md @@ -0,0 +1,2 @@ +#`function` setPlayerRespawnTime +::: src.pyg2o.functions.player.setPlayerRespawnTime \ No newline at end of file diff --git a/docs/functions/player/setPlayerScale.md b/docs/functions/player/setPlayerScale.md new file mode 100644 index 0000000..faad1a3 --- /dev/null +++ b/docs/functions/player/setPlayerScale.md @@ -0,0 +1,2 @@ +#`function` setPlayerScale +::: src.pyg2o.functions.player.setPlayerScale \ No newline at end of file diff --git a/docs/functions/player/setPlayerSkillWeapon.md b/docs/functions/player/setPlayerSkillWeapon.md new file mode 100644 index 0000000..ea04299 --- /dev/null +++ b/docs/functions/player/setPlayerSkillWeapon.md @@ -0,0 +1,2 @@ +#`function` setPlayerSkillWeapon +::: src.pyg2o.functions.player.setPlayerSkillWeapon \ No newline at end of file diff --git a/docs/functions/player/setPlayerStrength.md b/docs/functions/player/setPlayerStrength.md new file mode 100644 index 0000000..63edfde --- /dev/null +++ b/docs/functions/player/setPlayerStrength.md @@ -0,0 +1,2 @@ +#`function` setPlayerStrength +::: src.pyg2o.functions.player.setPlayerStrength \ No newline at end of file diff --git a/docs/functions/player/setPlayerTalent.md b/docs/functions/player/setPlayerTalent.md new file mode 100644 index 0000000..79fce76 --- /dev/null +++ b/docs/functions/player/setPlayerTalent.md @@ -0,0 +1,2 @@ +#`function` setPlayerTalent +::: src.pyg2o.functions.player.setPlayerTalent \ No newline at end of file diff --git a/docs/functions/player/setPlayerVirtualWorld.md b/docs/functions/player/setPlayerVirtualWorld.md new file mode 100644 index 0000000..3eb85b3 --- /dev/null +++ b/docs/functions/player/setPlayerVirtualWorld.md @@ -0,0 +1,2 @@ +#`function` setPlayerVirtualWorld +::: src.pyg2o.functions.player.setPlayerVirtualWorld \ No newline at end of file diff --git a/docs/functions/player/setPlayerVisual.md b/docs/functions/player/setPlayerVisual.md new file mode 100644 index 0000000..332bb0d --- /dev/null +++ b/docs/functions/player/setPlayerVisual.md @@ -0,0 +1,2 @@ +#`function` setPlayerVisual +::: src.pyg2o.functions.player.setPlayerVisual \ No newline at end of file diff --git a/docs/functions/player/setPlayerWeaponMode.md b/docs/functions/player/setPlayerWeaponMode.md new file mode 100644 index 0000000..c71421e --- /dev/null +++ b/docs/functions/player/setPlayerWeaponMode.md @@ -0,0 +1,2 @@ +#`function` setPlayerWeaponMode +::: src.pyg2o.functions.player.setPlayerWeaponMode \ No newline at end of file diff --git a/docs/functions/player/setPlayerWorld.md b/docs/functions/player/setPlayerWorld.md new file mode 100644 index 0000000..1ed2106 --- /dev/null +++ b/docs/functions/player/setPlayerWorld.md @@ -0,0 +1,2 @@ +#`function` setPlayerWorld +::: src.pyg2o.functions.player.setPlayerWorld \ No newline at end of file diff --git a/docs/functions/player/spawnPlayer.md b/docs/functions/player/spawnPlayer.md new file mode 100644 index 0000000..2b469f9 --- /dev/null +++ b/docs/functions/player/spawnPlayer.md @@ -0,0 +1,2 @@ +#`function` spawnPlayer +::: src.pyg2o.functions.player.spawnPlayer \ No newline at end of file diff --git a/docs/functions/player/stopAni.md b/docs/functions/player/stopAni.md new file mode 100644 index 0000000..972354a --- /dev/null +++ b/docs/functions/player/stopAni.md @@ -0,0 +1,2 @@ +#`function` stopAni +::: src.pyg2o.functions.player.stopAni \ No newline at end of file diff --git a/docs/functions/player/stopFaceAni.md b/docs/functions/player/stopFaceAni.md new file mode 100644 index 0000000..bad90cd --- /dev/null +++ b/docs/functions/player/stopFaceAni.md @@ -0,0 +1,2 @@ +#`function` stopFaceAni +::: src.pyg2o.functions.player.stopFaceAni \ No newline at end of file diff --git a/docs/functions/player/unequipItem.md b/docs/functions/player/unequipItem.md new file mode 100644 index 0000000..ad4b195 --- /dev/null +++ b/docs/functions/player/unequipItem.md @@ -0,0 +1,2 @@ +#`function` unequipItem +::: src.pyg2o.functions.player.unequipItem \ No newline at end of file diff --git a/docs/functions/player/unreadySpell.md b/docs/functions/player/unreadySpell.md new file mode 100644 index 0000000..02c13ab --- /dev/null +++ b/docs/functions/player/unreadySpell.md @@ -0,0 +1,2 @@ +#`function` unreadySpell +::: src.pyg2o.functions.player.unreadySpell \ No newline at end of file diff --git a/docs/functions/player/unspawnPlayer.md b/docs/functions/player/unspawnPlayer.md new file mode 100644 index 0000000..3d8484d --- /dev/null +++ b/docs/functions/player/unspawnPlayer.md @@ -0,0 +1,2 @@ +#`function` unspawnPlayer +::: src.pyg2o.functions.player.unspawnPlayer \ No newline at end of file diff --git a/docs/functions/player/useItem.md b/docs/functions/player/useItem.md new file mode 100644 index 0000000..d0eb9ab --- /dev/null +++ b/docs/functions/player/useItem.md @@ -0,0 +1,2 @@ +#`function` useItem +::: src.pyg2o.functions.player.useItem \ No newline at end of file diff --git a/docs/functions/player/useItemToState.md b/docs/functions/player/useItemToState.md new file mode 100644 index 0000000..619bd9d --- /dev/null +++ b/docs/functions/player/useItemToState.md @@ -0,0 +1,2 @@ +#`function` useItemToState +::: src.pyg2o.functions.player.useItemToState \ No newline at end of file diff --git a/docs/functions/streamer/findNearbyPlayers.md b/docs/functions/streamer/findNearbyPlayers.md new file mode 100644 index 0000000..9f93d59 --- /dev/null +++ b/docs/functions/streamer/findNearbyPlayers.md @@ -0,0 +1,2 @@ +#`function` findNearbyPlayers +::: src.pyg2o.functions.streamer.findNearbyPlayers \ No newline at end of file diff --git a/docs/functions/streamer/getSpawnedPlayersForPlayer.md b/docs/functions/streamer/getSpawnedPlayersForPlayer.md new file mode 100644 index 0000000..2e12592 --- /dev/null +++ b/docs/functions/streamer/getSpawnedPlayersForPlayer.md @@ -0,0 +1,2 @@ +#`function` getSpawnedPlayersForPlayer +::: src.pyg2o.functions.streamer.getSpawnedPlayersForPlayer \ No newline at end of file diff --git a/docs/functions/streamer/getStreamedPlayersByPlayer.md b/docs/functions/streamer/getStreamedPlayersByPlayer.md new file mode 100644 index 0000000..d30494d --- /dev/null +++ b/docs/functions/streamer/getStreamedPlayersByPlayer.md @@ -0,0 +1,2 @@ +#`function` getStreamedPlayersByPlayer +::: src.pyg2o.functions.streamer.getStreamedPlayersByPlayer \ No newline at end of file diff --git a/docs/functions/waypoint/getNearestWaypoint.md b/docs/functions/waypoint/getNearestWaypoint.md new file mode 100644 index 0000000..0812790 --- /dev/null +++ b/docs/functions/waypoint/getNearestWaypoint.md @@ -0,0 +1,2 @@ +#`function` getNearestWaypoint +::: src.pyg2o.functions.waypoint.getNearestWaypoint \ No newline at end of file diff --git a/docs/functions/waypoint/getWaypoint.md b/docs/functions/waypoint/getWaypoint.md new file mode 100644 index 0000000..1a93388 --- /dev/null +++ b/docs/functions/waypoint/getWaypoint.md @@ -0,0 +1,2 @@ +#`function` getWaypoint +::: src.pyg2o.functions.waypoint.getWaypoint \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..23c9316 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,45 @@ +## How to use +1. Install [G2O WebSocket module](https://github.com/AURUMVORXX/G2O-WebSocket) to your server +1. Download **include/** folder and import the Squirrel part of the library: +```xml + +``` +2. Install python library to your application +``` +pip install git+https://github.com/AURUMVORXX/PyG2O.git +``` +3. Launch websocket client in your Squirrel scripts +``` +// PyG2O_Start(url, reconnect, silent) +// reconnect - auto reconnect if server stopped +// silent - disable information prints + +// Start server before any events +PyG2O_Start("ws://localhost:8080", true, false) + +addEventHandler("onInit"... +``` +4. In your application, launch asyncio event loop and websocket server +```python +import pyg2o +import asyncio + +srv = None + +async def main(): + global srv + srv = pyg2o.PythonWebsocketServer( + host='localhost', + port=8080, + ping_interval=30, + silent=False, + whitelist=['::1'], + ) + try: + await srv.start() + except asyncio.CancelledError: + await srv.stop() + +if __name__ == '__main__': + asyncio.run(main()) +``` \ No newline at end of file diff --git a/python/docs/qna.md b/docs/qna.md similarity index 100% rename from python/docs/qna.md rename to docs/qna.md diff --git a/python/mkdocs.yml b/mkdocs.yml similarity index 98% rename from python/mkdocs.yml rename to mkdocs.yml index a78a404..fd54430 100644 --- a/python/mkdocs.yml +++ b/mkdocs.yml @@ -22,8 +22,6 @@ nav: - How to use: index.md - Comparing with Squirrel: comparing.md - QnA: qna.md - - How To...: - - ...debug?: howto/localdebug.md - Classes: - Game: - Daedalus: classes/game/Daedalus.md @@ -32,12 +30,8 @@ nav: - Item: - ItemGround: classes/item/ItemGround.md - ItemsGround: classes/item/ItemsGround.md - - Network: - - Packet: classes/network/Packet.md - Mds: - Mds: classes/mds/Mds.md - - Waypoint: - - Way: classes/waypoint/Way.md - Constants: - AntiCheat: constants/anticheat.md - Context: constants/context.md @@ -62,8 +56,6 @@ nav: - onTime: defaultEvents/general/onTime.md - onBan: defaultEvents/general/onBan.md - onUnban: defaultEvents/general/onUnban.md - - Network: - - onPacket: defaultEvents/network/onPacket.md - Npc: - onNpcActionFinished: defaultEvents/npc/onNpcActionFinished.md - onNpcActionSent: defaultEvents/npc/onNpcActionSent.md diff --git a/python/docs/classes/game/Daedalus.md b/python/docs/classes/game/Daedalus.md deleted file mode 100644 index 86cb0ed..0000000 --- a/python/docs/classes/game/Daedalus.md +++ /dev/null @@ -1,3 +0,0 @@ -# `static class` Daedalus ---- -::: g2o.classes.daedalus.Daedalus \ No newline at end of file diff --git a/python/docs/classes/game/DamageDescription.md b/python/docs/classes/game/DamageDescription.md deleted file mode 100644 index 8cf1152..0000000 --- a/python/docs/classes/game/DamageDescription.md +++ /dev/null @@ -1,3 +0,0 @@ -# `class` DamageDescription ---- -::: g2o.classes.damage.DamageDescription \ No newline at end of file diff --git a/python/docs/classes/game/Sky.md b/python/docs/classes/game/Sky.md deleted file mode 100644 index bb1769d..0000000 --- a/python/docs/classes/game/Sky.md +++ /dev/null @@ -1,3 +0,0 @@ -# `static class` Sky ---- -::: g2o.classes.sky.Sky \ No newline at end of file diff --git a/python/docs/classes/item/ItemGround.md b/python/docs/classes/item/ItemGround.md deleted file mode 100644 index f2716ad..0000000 --- a/python/docs/classes/item/ItemGround.md +++ /dev/null @@ -1,3 +0,0 @@ -# `static class` ItemGround ---- -::: g2o.classes.items.ItemGround \ No newline at end of file diff --git a/python/docs/classes/item/ItemsGround.md b/python/docs/classes/item/ItemsGround.md deleted file mode 100644 index 055f4cf..0000000 --- a/python/docs/classes/item/ItemsGround.md +++ /dev/null @@ -1,3 +0,0 @@ -# `static class` ItemsGround ---- -::: g2o.classes.items.ItemsGround \ No newline at end of file diff --git a/python/docs/classes/mds/Mds.md b/python/docs/classes/mds/Mds.md deleted file mode 100644 index cd9306f..0000000 --- a/python/docs/classes/mds/Mds.md +++ /dev/null @@ -1,3 +0,0 @@ -# `static class` Mds ---- -::: g2o.classes.mds.Mds \ No newline at end of file diff --git a/python/docs/classes/network/Packet.md b/python/docs/classes/network/Packet.md deleted file mode 100644 index 7eec82a..0000000 --- a/python/docs/classes/network/Packet.md +++ /dev/null @@ -1,3 +0,0 @@ -# `class` Packet ---- -::: g2o.classes.packets.Packet \ No newline at end of file diff --git a/python/docs/classes/waypoint/Way.md b/python/docs/classes/waypoint/Way.md deleted file mode 100644 index f9573d2..0000000 --- a/python/docs/classes/waypoint/Way.md +++ /dev/null @@ -1,3 +0,0 @@ -# `class` Way ---- -::: g2o.classes.way.Way \ No newline at end of file diff --git a/python/docs/defaultEvents/network/onPacket.md b/python/docs/defaultEvents/network/onPacket.md deleted file mode 100644 index c4219a0..0000000 --- a/python/docs/defaultEvents/network/onPacket.md +++ /dev/null @@ -1,22 +0,0 @@ -# `event` onPacket -This event is triggered when new packet arrives from the client. - -Original: [onPacket](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/network/onPacket/) - -## Parameters -* `dict` **kwargs**: - * `int` **playerid**: the id of the player who sent the packet. - * `Packet` **data**: data sended over network from client side. - -## Usage -```python -import g2o - -@g2o.event('onPacket') -def onPacketEvt(**kwargs): - data = kwargs['data'] - message = data.readString() - - print(f'Got packet from {kwargs['playerid']} (bytes used {data.bytesUsed})') - print(f'Packet says: {message}') -``` \ No newline at end of file diff --git a/python/docs/defaultEvents/player/onPlayerChangeWeaponMode.md b/python/docs/defaultEvents/player/onPlayerChangeWeaponMode.md deleted file mode 100644 index 035fc07..0000000 --- a/python/docs/defaultEvents/player/onPlayerChangeWeaponMode.md +++ /dev/null @@ -1,19 +0,0 @@ -# `event` onPlayerChangeWeaponMode -This event is triggered when player changes the weapon mode. - -Original: [onPlayerChangeWeaponMode](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/player/onPlayerChangeWeaponMode/) - -## Parameters -* `dict` **kwargs**: - * `int` **playerid**: the id of the player which changes the weapon mode. - * `int` **oldWeaponMode**: the old weapon mode which was used by the player. For more information see [Weapon mode](../../constants/weapon-mode.md). - * `int` **newWeaponMode**: the new weapon mode in which player is currently using. For more information see [Weapon mode](../../constants/weapon-mode.md). - -## Usage -```python -import g2o - -@g2o.event('onPlayerChangeWeaponMode') -def onChangeWM(**kwargs): - print(f'Player {kwargs['playerid']} changed wm: {kwargs['oldWeaponMode']} -> {kwargs['newWeaponMode']}') -``` \ No newline at end of file diff --git a/python/docs/functions/chat/sendMessageToAll.md b/python/docs/functions/chat/sendMessageToAll.md deleted file mode 100644 index 2fe2f91..0000000 --- a/python/docs/functions/chat/sendMessageToAll.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` sendMessageToAll -::: g2o.functions.chat.sendMessageToAll \ No newline at end of file diff --git a/python/docs/functions/chat/sendMessageToPlayer.md b/python/docs/functions/chat/sendMessageToPlayer.md deleted file mode 100644 index a5bef73..0000000 --- a/python/docs/functions/chat/sendMessageToPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` sendMessageToPlayer -::: g2o.functions.chat.sendMessageToPlayer \ No newline at end of file diff --git a/python/docs/functions/chat/sendPlayerMessageToAll.md b/python/docs/functions/chat/sendPlayerMessageToAll.md deleted file mode 100644 index ea00374..0000000 --- a/python/docs/functions/chat/sendPlayerMessageToAll.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` sendPlayerMessageToAll -::: g2o.functions.chat.sendPlayerMessageToAll \ No newline at end of file diff --git a/python/docs/functions/chat/sendPlayerMessageToPlayer.md b/python/docs/functions/chat/sendPlayerMessageToPlayer.md deleted file mode 100644 index d694243..0000000 --- a/python/docs/functions/chat/sendPlayerMessageToPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` sendPlayerMessageToPlayer -::: g2o.functions.chat.sendPlayerMessageToPlayer \ No newline at end of file diff --git a/python/docs/functions/event/addEvent.md b/python/docs/functions/event/addEvent.md deleted file mode 100644 index af46255..0000000 --- a/python/docs/functions/event/addEvent.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` addEvent -::: g2o.functions.event.addEvent \ No newline at end of file diff --git a/python/docs/functions/event/callEvent.md b/python/docs/functions/event/callEvent.md deleted file mode 100644 index 67d5b71..0000000 --- a/python/docs/functions/event/callEvent.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` callEvent -::: g2o.functions.event.callEvent \ No newline at end of file diff --git a/python/docs/functions/event/event.md b/python/docs/functions/event/event.md deleted file mode 100644 index 572ab42..0000000 --- a/python/docs/functions/event/event.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` event -::: g2o.functions.event.event \ No newline at end of file diff --git a/python/docs/functions/event/removeEvent.md b/python/docs/functions/event/removeEvent.md deleted file mode 100644 index 63a4d69..0000000 --- a/python/docs/functions/event/removeEvent.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` removeEvent -::: g2o.functions.event.removeEvent \ No newline at end of file diff --git a/python/docs/functions/event/removeEventHandler.md b/python/docs/functions/event/removeEventHandler.md deleted file mode 100644 index f8bf97d..0000000 --- a/python/docs/functions/event/removeEventHandler.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` removeEventHandler -::: g2o.functions.event.removeEventHandler \ No newline at end of file diff --git a/python/docs/functions/event/toggleEvent.md b/python/docs/functions/event/toggleEvent.md deleted file mode 100644 index 64ce90c..0000000 --- a/python/docs/functions/event/toggleEvent.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` toggleEvent -::: g2o.functions.event.toggleEvent \ No newline at end of file diff --git a/python/docs/functions/game/exit.md b/python/docs/functions/game/exit.md deleted file mode 100644 index a5c79e0..0000000 --- a/python/docs/functions/game/exit.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` exit -::: g2o.functions.game.exit \ No newline at end of file diff --git a/python/docs/functions/game/getDayLength.md b/python/docs/functions/game/getDayLength.md deleted file mode 100644 index 26ed93b..0000000 --- a/python/docs/functions/game/getDayLength.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getDayLength -::: g2o.functions.game.getDayLength \ No newline at end of file diff --git a/python/docs/functions/game/getHostname.md b/python/docs/functions/game/getHostname.md deleted file mode 100644 index 37db951..0000000 --- a/python/docs/functions/game/getHostname.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getHostname -::: g2o.functions.game.getHostname \ No newline at end of file diff --git a/python/docs/functions/game/getMaxSlots.md b/python/docs/functions/game/getMaxSlots.md deleted file mode 100644 index b81f2c0..0000000 --- a/python/docs/functions/game/getMaxSlots.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getMaxSlots -::: g2o.functions.game.getMaxSlots \ No newline at end of file diff --git a/python/docs/functions/game/getPlayersCount.md b/python/docs/functions/game/getPlayersCount.md deleted file mode 100644 index 6541a41..0000000 --- a/python/docs/functions/game/getPlayersCount.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getPlayersCount -::: g2o.functions.game.getPlayersCount \ No newline at end of file diff --git a/python/docs/functions/game/getServerDescription.md b/python/docs/functions/game/getServerDescription.md deleted file mode 100644 index 3084222..0000000 --- a/python/docs/functions/game/getServerDescription.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getServerDescription -::: g2o.functions.game.getServerDescription \ No newline at end of file diff --git a/python/docs/functions/game/getServerWorld.md b/python/docs/functions/game/getServerWorld.md deleted file mode 100644 index bcf8cc7..0000000 --- a/python/docs/functions/game/getServerWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getServerWorld -::: g2o.functions.game.getServerWorld \ No newline at end of file diff --git a/python/docs/functions/game/getTime.md b/python/docs/functions/game/getTime.md deleted file mode 100644 index 9795d93..0000000 --- a/python/docs/functions/game/getTime.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getTime -::: g2o.functions.game.getTime \ No newline at end of file diff --git a/python/docs/functions/game/serverLog.md b/python/docs/functions/game/serverLog.md deleted file mode 100644 index 3a6cb5a..0000000 --- a/python/docs/functions/game/serverLog.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` serverLog -::: g2o.functions.game.serverLog \ No newline at end of file diff --git a/python/docs/functions/game/setDayLength.md b/python/docs/functions/game/setDayLength.md deleted file mode 100644 index f8c8c13..0000000 --- a/python/docs/functions/game/setDayLength.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` setDayLength -::: g2o.functions.game.setDayLength \ No newline at end of file diff --git a/python/docs/functions/game/setServerDescription.md b/python/docs/functions/game/setServerDescription.md deleted file mode 100644 index e87d103..0000000 --- a/python/docs/functions/game/setServerDescription.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` setServerDescription -::: g2o.functions.game.setServerDescription \ No newline at end of file diff --git a/python/docs/functions/game/setServerWorld.md b/python/docs/functions/game/setServerWorld.md deleted file mode 100644 index aa39aea..0000000 --- a/python/docs/functions/game/setServerWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` setServerWorld -::: g2o.functions.game.setServerWorld \ No newline at end of file diff --git a/python/docs/functions/game/setTime.md b/python/docs/functions/game/setTime.md deleted file mode 100644 index 746da62..0000000 --- a/python/docs/functions/game/setTime.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` setTime -::: g2o.functions.game.setTime \ No newline at end of file diff --git a/python/docs/functions/npc/clearNpcActions.md b/python/docs/functions/npc/clearNpcActions.md deleted file mode 100644 index 260b721..0000000 --- a/python/docs/functions/npc/clearNpcActions.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` clearNpcActions -::: g2o.functions.npc.clearNpcActions \ No newline at end of file diff --git a/python/docs/functions/npc/createNpc.md b/python/docs/functions/npc/createNpc.md deleted file mode 100644 index 9ca47f4..0000000 --- a/python/docs/functions/npc/createNpc.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` createNpc -::: g2o.functions.npc.createNpc \ No newline at end of file diff --git a/python/docs/functions/npc/destroyNpc.md b/python/docs/functions/npc/destroyNpc.md deleted file mode 100644 index 749a635..0000000 --- a/python/docs/functions/npc/destroyNpc.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` destroyNpc -::: g2o.functions.npc.destroyNpc \ No newline at end of file diff --git a/python/docs/functions/npc/getNpcAction.md b/python/docs/functions/npc/getNpcAction.md deleted file mode 100644 index a4eecbe..0000000 --- a/python/docs/functions/npc/getNpcAction.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getNpcAction -::: g2o.functions.npc.getNpcAction \ No newline at end of file diff --git a/python/docs/functions/npc/getNpcActions.md b/python/docs/functions/npc/getNpcActions.md deleted file mode 100644 index 87e4f57..0000000 --- a/python/docs/functions/npc/getNpcActions.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getNpcActions -::: g2o.functions.npc.getNpcActions \ No newline at end of file diff --git a/python/docs/functions/npc/getNpcActionsCount.md b/python/docs/functions/npc/getNpcActionsCount.md deleted file mode 100644 index a142724..0000000 --- a/python/docs/functions/npc/getNpcActionsCount.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getNpcActionsCount -::: g2o.functions.npc.getNpcActionsCount \ No newline at end of file diff --git a/python/docs/functions/npc/getNpcHostPlayer.md b/python/docs/functions/npc/getNpcHostPlayer.md deleted file mode 100644 index 3b05e65..0000000 --- a/python/docs/functions/npc/getNpcHostPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getNpcHostPlayer -::: g2o.functions.npc.getNpcHostPlayer \ No newline at end of file diff --git a/python/docs/functions/npc/getNpcLastActionId.md b/python/docs/functions/npc/getNpcLastActionId.md deleted file mode 100644 index cc8d304..0000000 --- a/python/docs/functions/npc/getNpcLastActionId.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` getNpcLastActionId -::: g2o.functions.npc.getNpcLastActionId \ No newline at end of file diff --git a/python/docs/functions/npc/isNpc.md b/python/docs/functions/npc/isNpc.md deleted file mode 100644 index 0f1a383..0000000 --- a/python/docs/functions/npc/isNpc.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` isNpc -::: g2o.functions.npc.isNpc \ No newline at end of file diff --git a/python/docs/functions/npc/isNpcActionFinished.md b/python/docs/functions/npc/isNpcActionFinished.md deleted file mode 100644 index 9af658e..0000000 --- a/python/docs/functions/npc/isNpcActionFinished.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` isNpcActionFinished -::: g2o.functions.npc.isNpcActionFinished \ No newline at end of file diff --git a/python/docs/functions/npc/npcAttackMelee.md b/python/docs/functions/npc/npcAttackMelee.md deleted file mode 100644 index 3c2037c..0000000 --- a/python/docs/functions/npc/npcAttackMelee.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` npcAttackMelee -::: g2o.functions.npc.npcAttackMelee \ No newline at end of file diff --git a/python/docs/functions/npc/npcAttackRanged.md b/python/docs/functions/npc/npcAttackRanged.md deleted file mode 100644 index de22ed0..0000000 --- a/python/docs/functions/npc/npcAttackRanged.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` npcAttackRanged -::: g2o.functions.npc.npcAttackRanged \ No newline at end of file diff --git a/python/docs/functions/npc/npcSpellCast.md b/python/docs/functions/npc/npcSpellCast.md deleted file mode 100644 index ff3a578..0000000 --- a/python/docs/functions/npc/npcSpellCast.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` npcSpellCast -::: g2o.functions.npc.npcSpellCast \ No newline at end of file diff --git a/python/docs/functions/npc/npcUseClosestMob.md b/python/docs/functions/npc/npcUseClosestMob.md deleted file mode 100644 index 8fed2db..0000000 --- a/python/docs/functions/npc/npcUseClosestMob.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` npcUseClosestMob -::: g2o.functions.npc.npcUseClosestMob \ No newline at end of file diff --git a/python/docs/functions/npc/setNpcHostPlayer.md b/python/docs/functions/npc/setNpcHostPlayer.md deleted file mode 100644 index 4ba8aa7..0000000 --- a/python/docs/functions/npc/setNpcHostPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -# `function` setNpcHostPlayer -::: g2o.functions.npc.setNpcHostPlayer \ No newline at end of file diff --git a/python/docs/functions/player/addBan.md b/python/docs/functions/player/addBan.md deleted file mode 100644 index e8b588e..0000000 --- a/python/docs/functions/player/addBan.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` addBan -::: g2o.functions.player.addBan \ No newline at end of file diff --git a/python/docs/functions/player/applyPlayerOverlay.md b/python/docs/functions/player/applyPlayerOverlay.md deleted file mode 100644 index 3db1421..0000000 --- a/python/docs/functions/player/applyPlayerOverlay.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` applyPlayerOverlay -::: g2o.functions.player.applyPlayerOverlay \ No newline at end of file diff --git a/python/docs/functions/player/ban.md b/python/docs/functions/player/ban.md deleted file mode 100644 index 4cbdb94..0000000 --- a/python/docs/functions/player/ban.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` ban -::: g2o.functions.player.ban \ No newline at end of file diff --git a/python/docs/functions/player/drawWeapon.md b/python/docs/functions/player/drawWeapon.md deleted file mode 100644 index d4564c4..0000000 --- a/python/docs/functions/player/drawWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` drawWeapon -::: g2o.functions.player.drawWeapon \ No newline at end of file diff --git a/python/docs/functions/player/equipItem.md b/python/docs/functions/player/equipItem.md deleted file mode 100644 index e243166..0000000 --- a/python/docs/functions/player/equipItem.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` equipItem -::: g2o.functions.player.equipItem \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerAmulet.md b/python/docs/functions/player/getPlayerAmulet.md deleted file mode 100644 index 12a4a4e..0000000 --- a/python/docs/functions/player/getPlayerAmulet.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerAmulet -::: g2o.functions.player.getPlayerAmulet \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerAngle.md b/python/docs/functions/player/getPlayerAngle.md deleted file mode 100644 index d4dd1d0..0000000 --- a/python/docs/functions/player/getPlayerAngle.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerAngle -::: g2o.functions.player.getPlayerAngle \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerAni.md b/python/docs/functions/player/getPlayerAni.md deleted file mode 100644 index 36a0e42..0000000 --- a/python/docs/functions/player/getPlayerAni.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerAni -::: g2o.functions.player.getPlayerAni \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerArmor.md b/python/docs/functions/player/getPlayerArmor.md deleted file mode 100644 index 1dac6b1..0000000 --- a/python/docs/functions/player/getPlayerArmor.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerArmor -::: g2o.functions.player.getPlayerArmor \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerAtVector.md b/python/docs/functions/player/getPlayerAtVector.md deleted file mode 100644 index 73bbfd7..0000000 --- a/python/docs/functions/player/getPlayerAtVector.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerAtVector -::: g2o.functions.player.getPlayerAtVector \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerBelt.md b/python/docs/functions/player/getPlayerBelt.md deleted file mode 100644 index 9e1c5e7..0000000 --- a/python/docs/functions/player/getPlayerBelt.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerBelt -::: g2o.functions.player.getPlayerBelt \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerCameraPosition.md b/python/docs/functions/player/getPlayerCameraPosition.md deleted file mode 100644 index c71e714..0000000 --- a/python/docs/functions/player/getPlayerCameraPosition.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerCameraPosition -::: g2o.functions.player.getPlayerCameraPosition \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerCollision.md b/python/docs/functions/player/getPlayerCollision.md deleted file mode 100644 index cc22aef..0000000 --- a/python/docs/functions/player/getPlayerCollision.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerCollision -::: g2o.functions.player.getPlayerCollision \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerColor.md b/python/docs/functions/player/getPlayerColor.md deleted file mode 100644 index 6e80b3a..0000000 --- a/python/docs/functions/player/getPlayerColor.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerColor -::: g2o.functions.player.getPlayerColor \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerContext.md b/python/docs/functions/player/getPlayerContext.md deleted file mode 100644 index ba6c143..0000000 --- a/python/docs/functions/player/getPlayerContext.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerContext -::: g2o.functions.player.getPlayerContext \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerDexterity.md b/python/docs/functions/player/getPlayerDexterity.md deleted file mode 100644 index d42be22..0000000 --- a/python/docs/functions/player/getPlayerDexterity.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerDexterity -::: g2o.functions.player.getPlayerDexterity \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerFaceAnis.md b/python/docs/functions/player/getPlayerFaceAnis.md deleted file mode 100644 index 3aa2adf..0000000 --- a/python/docs/functions/player/getPlayerFaceAnis.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerFaceAnis -::: g2o.functions.player.getPlayerFaceAnis \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerFatness.md b/python/docs/functions/player/getPlayerFatness.md deleted file mode 100644 index 65e5722..0000000 --- a/python/docs/functions/player/getPlayerFatness.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerFatness -::: g2o.functions.player.getPlayerFatness \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerFocus.md b/python/docs/functions/player/getPlayerFocus.md deleted file mode 100644 index c42b479..0000000 --- a/python/docs/functions/player/getPlayerFocus.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerFocus -::: g2o.functions.player.getPlayerFocus \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerHealth.md b/python/docs/functions/player/getPlayerHealth.md deleted file mode 100644 index 2196ace..0000000 --- a/python/docs/functions/player/getPlayerHealth.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerHealth -::: g2o.functions.player.getPlayerHealth \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerHelmet.md b/python/docs/functions/player/getPlayerHelmet.md deleted file mode 100644 index 3fe611c..0000000 --- a/python/docs/functions/player/getPlayerHelmet.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerHelmet -::: g2o.functions.player.getPlayerHelmet \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerIP.md b/python/docs/functions/player/getPlayerIP.md deleted file mode 100644 index 39a3316..0000000 --- a/python/docs/functions/player/getPlayerIP.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerIP -::: g2o.functions.player.getPlayerIP \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerInstance.md b/python/docs/functions/player/getPlayerInstance.md deleted file mode 100644 index 38f7b08..0000000 --- a/python/docs/functions/player/getPlayerInstance.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerInstance -::: g2o.functions.player.getPlayerInstance \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerInvisible.md b/python/docs/functions/player/getPlayerInvisible.md deleted file mode 100644 index 7f8670d..0000000 --- a/python/docs/functions/player/getPlayerInvisible.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerInvisible -::: g2o.functions.player.getPlayerInvisible \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerMacAddr.md b/python/docs/functions/player/getPlayerMacAddr.md deleted file mode 100644 index 81218b5..0000000 --- a/python/docs/functions/player/getPlayerMacAddr.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerMacAddr -::: g2o.functions.player.getPlayerMacAddr \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerMana.md b/python/docs/functions/player/getPlayerMana.md deleted file mode 100644 index ebecf40..0000000 --- a/python/docs/functions/player/getPlayerMana.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerMana -::: g2o.functions.player.getPlayerMana \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerMaxHealth.md b/python/docs/functions/player/getPlayerMaxHealth.md deleted file mode 100644 index 3094e52..0000000 --- a/python/docs/functions/player/getPlayerMaxHealth.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerMaxHealth -::: g2o.functions.player.getPlayerMaxHealth \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerMaxMana.md b/python/docs/functions/player/getPlayerMaxMana.md deleted file mode 100644 index b711d6e..0000000 --- a/python/docs/functions/player/getPlayerMaxMana.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerMaxMana -::: g2o.functions.player.getPlayerMaxMana \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerMeleeWeapon.md b/python/docs/functions/player/getPlayerMeleeWeapon.md deleted file mode 100644 index e6c5c71..0000000 --- a/python/docs/functions/player/getPlayerMeleeWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerMeleeWeapon -::: g2o.functions.player.getPlayerMeleeWeapon \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerName.md b/python/docs/functions/player/getPlayerName.md deleted file mode 100644 index 90a499e..0000000 --- a/python/docs/functions/player/getPlayerName.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerName -::: g2o.functions.player.getPlayerName \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerPing.md b/python/docs/functions/player/getPlayerPing.md deleted file mode 100644 index b6f20da..0000000 --- a/python/docs/functions/player/getPlayerPing.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerPing -::: g2o.functions.player.getPlayerPing \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerPosition.md b/python/docs/functions/player/getPlayerPosition.md deleted file mode 100644 index bb0552f..0000000 --- a/python/docs/functions/player/getPlayerPosition.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerPosition -::: g2o.functions.player.getPlayerPosition \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerRangedWeapon.md b/python/docs/functions/player/getPlayerRangedWeapon.md deleted file mode 100644 index 8d468c5..0000000 --- a/python/docs/functions/player/getPlayerRangedWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerRangedWeapon -::: g2o.functions.player.getPlayerRangedWeapon \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerRespawnTime.md b/python/docs/functions/player/getPlayerRespawnTime.md deleted file mode 100644 index 392b55a..0000000 --- a/python/docs/functions/player/getPlayerRespawnTime.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerRespawnTime -::: g2o.functions.player.getPlayerRespawnTime \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerRing.md b/python/docs/functions/player/getPlayerRing.md deleted file mode 100644 index 9ca2f35..0000000 --- a/python/docs/functions/player/getPlayerRing.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerRing -::: g2o.functions.player.getPlayerRing \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerScale.md b/python/docs/functions/player/getPlayerScale.md deleted file mode 100644 index aaa2423..0000000 --- a/python/docs/functions/player/getPlayerScale.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerScale -::: g2o.functions.player.getPlayerScale \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerSerial.md b/python/docs/functions/player/getPlayerSerial.md deleted file mode 100644 index b589492..0000000 --- a/python/docs/functions/player/getPlayerSerial.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerSerial -::: g2o.functions.player.getPlayerSerial \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerShield.md b/python/docs/functions/player/getPlayerShield.md deleted file mode 100644 index b05ab9a..0000000 --- a/python/docs/functions/player/getPlayerShield.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerShield -::: g2o.functions.player.getPlayerShield \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerSkillWeapon.md b/python/docs/functions/player/getPlayerSkillWeapon.md deleted file mode 100644 index 96f13e3..0000000 --- a/python/docs/functions/player/getPlayerSkillWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerSkillWeapon -::: g2o.functions.player.getPlayerSkillWeapon \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerSpell.md b/python/docs/functions/player/getPlayerSpell.md deleted file mode 100644 index 3b550ca..0000000 --- a/python/docs/functions/player/getPlayerSpell.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerSpell -::: g2o.functions.player.getPlayerSpell \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerStrength.md b/python/docs/functions/player/getPlayerStrength.md deleted file mode 100644 index 6cb167f..0000000 --- a/python/docs/functions/player/getPlayerStrength.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerStrength -::: g2o.functions.player.getPlayerStrength \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerTalent.md b/python/docs/functions/player/getPlayerTalent.md deleted file mode 100644 index c2b977d..0000000 --- a/python/docs/functions/player/getPlayerTalent.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerTalent -::: g2o.functions.player.getPlayerTalent \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerUID.md b/python/docs/functions/player/getPlayerUID.md deleted file mode 100644 index 992e536..0000000 --- a/python/docs/functions/player/getPlayerUID.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerUID -::: g2o.functions.player.getPlayerUID \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerVirtualWorld.md b/python/docs/functions/player/getPlayerVirtualWorld.md deleted file mode 100644 index 2a83835..0000000 --- a/python/docs/functions/player/getPlayerVirtualWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerVirtualWorld -::: g2o.functions.player.getPlayerVirtualWorld \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerVisual.md b/python/docs/functions/player/getPlayerVisual.md deleted file mode 100644 index 7aeabce..0000000 --- a/python/docs/functions/player/getPlayerVisual.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerVisual -::: g2o.functions.player.getPlayerVisual \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerWeaponMode.md b/python/docs/functions/player/getPlayerWeaponMode.md deleted file mode 100644 index 9978588..0000000 --- a/python/docs/functions/player/getPlayerWeaponMode.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerWeaponMode -::: g2o.functions.player.getPlayerWeaponMode \ No newline at end of file diff --git a/python/docs/functions/player/getPlayerWorld.md b/python/docs/functions/player/getPlayerWorld.md deleted file mode 100644 index 5d6450c..0000000 --- a/python/docs/functions/player/getPlayerWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getPlayerWorld -::: g2o.functions.player.getPlayerWorld \ No newline at end of file diff --git a/python/docs/functions/player/giveItem.md b/python/docs/functions/player/giveItem.md deleted file mode 100644 index 4419f7d..0000000 --- a/python/docs/functions/player/giveItem.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` giveItem -::: g2o.functions.player.giveItem \ No newline at end of file diff --git a/python/docs/functions/player/hitPlayer.md b/python/docs/functions/player/hitPlayer.md deleted file mode 100644 index 251e1ad..0000000 --- a/python/docs/functions/player/hitPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` hitPlayer -::: g2o.functions.player.hitPlayer \ No newline at end of file diff --git a/python/docs/functions/player/isPlayerConnected.md b/python/docs/functions/player/isPlayerConnected.md deleted file mode 100644 index 2cd80fa..0000000 --- a/python/docs/functions/player/isPlayerConnected.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` isPlayerConnected -::: g2o.functions.player.isPlayerConnected \ No newline at end of file diff --git a/python/docs/functions/player/isPlayerDead.md b/python/docs/functions/player/isPlayerDead.md deleted file mode 100644 index 81a0577..0000000 --- a/python/docs/functions/player/isPlayerDead.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` isPlayerDead -::: g2o.functions.player.isPlayerDead \ No newline at end of file diff --git a/python/docs/functions/player/isPlayerSpawned.md b/python/docs/functions/player/isPlayerSpawned.md deleted file mode 100644 index d8255a7..0000000 --- a/python/docs/functions/player/isPlayerSpawned.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` isPlayerSpawned -::: g2o.functions.player.isPlayerSpawned \ No newline at end of file diff --git a/python/docs/functions/player/isPlayerUnconscious.md b/python/docs/functions/player/isPlayerUnconscious.md deleted file mode 100644 index c707ddc..0000000 --- a/python/docs/functions/player/isPlayerUnconscious.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` isPlayerUnconscious -::: g2o.functions.player.isPlayerUnconscious \ No newline at end of file diff --git a/python/docs/functions/player/kick.md b/python/docs/functions/player/kick.md deleted file mode 100644 index d0c6bc7..0000000 --- a/python/docs/functions/player/kick.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` kick -::: g2o.functions.player.kick \ No newline at end of file diff --git a/python/docs/functions/player/playAni.md b/python/docs/functions/player/playAni.md deleted file mode 100644 index 2d307de..0000000 --- a/python/docs/functions/player/playAni.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` playAni -::: g2o.functions.player.playAni \ No newline at end of file diff --git a/python/docs/functions/player/playFaceAni.md b/python/docs/functions/player/playFaceAni.md deleted file mode 100644 index 344f81f..0000000 --- a/python/docs/functions/player/playFaceAni.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` playFaceAni -::: g2o.functions.player.playFaceAni \ No newline at end of file diff --git a/python/docs/functions/player/readySpell.md b/python/docs/functions/player/readySpell.md deleted file mode 100644 index 9625532..0000000 --- a/python/docs/functions/player/readySpell.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` readySpell -::: g2o.functions.player.readySpell \ No newline at end of file diff --git a/python/docs/functions/player/removeItem.md b/python/docs/functions/player/removeItem.md deleted file mode 100644 index fe8ff65..0000000 --- a/python/docs/functions/player/removeItem.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` removeItem -::: g2o.functions.player.removeItem \ No newline at end of file diff --git a/python/docs/functions/player/removePlayerOverlay.md b/python/docs/functions/player/removePlayerOverlay.md deleted file mode 100644 index 4b4d934..0000000 --- a/python/docs/functions/player/removePlayerOverlay.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` removePlayerOverlay -::: g2o.functions.player.removePlayerOverlay \ No newline at end of file diff --git a/python/docs/functions/player/removeWeapon.md b/python/docs/functions/player/removeWeapon.md deleted file mode 100644 index 077e642..0000000 --- a/python/docs/functions/player/removeWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` removeWeapon -::: g2o.functions.player.removeWeapon \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerAngle.md b/python/docs/functions/player/setPlayerAngle.md deleted file mode 100644 index df389a3..0000000 --- a/python/docs/functions/player/setPlayerAngle.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerAngle -::: g2o.functions.player.setPlayerAngle \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerCollision.md b/python/docs/functions/player/setPlayerCollision.md deleted file mode 100644 index 51ae600..0000000 --- a/python/docs/functions/player/setPlayerCollision.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerCollision -::: g2o.functions.player.setPlayerCollision \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerColor.md b/python/docs/functions/player/setPlayerColor.md deleted file mode 100644 index eb3bf4b..0000000 --- a/python/docs/functions/player/setPlayerColor.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerColor -::: g2o.functions.player.setPlayerColor \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerDexterity.md b/python/docs/functions/player/setPlayerDexterity.md deleted file mode 100644 index 7881693..0000000 --- a/python/docs/functions/player/setPlayerDexterity.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerDexterity -::: g2o.functions.player.setPlayerDexterity \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerFatness.md b/python/docs/functions/player/setPlayerFatness.md deleted file mode 100644 index 85b8693..0000000 --- a/python/docs/functions/player/setPlayerFatness.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerFatness -::: g2o.functions.player.setPlayerFatness \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerHealth.md b/python/docs/functions/player/setPlayerHealth.md deleted file mode 100644 index de58fb3..0000000 --- a/python/docs/functions/player/setPlayerHealth.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerHealth -::: g2o.functions.player.setPlayerHealth \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerInstance.md b/python/docs/functions/player/setPlayerInstance.md deleted file mode 100644 index 6cb4168..0000000 --- a/python/docs/functions/player/setPlayerInstance.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerInstance -::: g2o.functions.player.setPlayerInstance \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerInvisible.md b/python/docs/functions/player/setPlayerInvisible.md deleted file mode 100644 index a2e08aa..0000000 --- a/python/docs/functions/player/setPlayerInvisible.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerInvisible -::: g2o.functions.player.setPlayerInvisible \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerMana.md b/python/docs/functions/player/setPlayerMana.md deleted file mode 100644 index c9d6985..0000000 --- a/python/docs/functions/player/setPlayerMana.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerMana -::: g2o.functions.player.setPlayerMana \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerMaxHealth.md b/python/docs/functions/player/setPlayerMaxHealth.md deleted file mode 100644 index 1344701..0000000 --- a/python/docs/functions/player/setPlayerMaxHealth.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerMaxHealth -::: g2o.functions.player.setPlayerMaxHealth \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerMaxMana.md b/python/docs/functions/player/setPlayerMaxMana.md deleted file mode 100644 index aeb55cb..0000000 --- a/python/docs/functions/player/setPlayerMaxMana.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerMaxMana -::: g2o.functions.player.setPlayerMaxMana \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerName.md b/python/docs/functions/player/setPlayerName.md deleted file mode 100644 index a3598a2..0000000 --- a/python/docs/functions/player/setPlayerName.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerName -::: g2o.functions.player.setPlayerName \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerRespawnTime.md b/python/docs/functions/player/setPlayerRespawnTime.md deleted file mode 100644 index 153e560..0000000 --- a/python/docs/functions/player/setPlayerRespawnTime.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerRespawnTime -::: g2o.functions.player.setPlayerRespawnTime \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerScale.md b/python/docs/functions/player/setPlayerScale.md deleted file mode 100644 index 0ad2ca2..0000000 --- a/python/docs/functions/player/setPlayerScale.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerScale -::: g2o.functions.player.setPlayerScale \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerSkillWeapon.md b/python/docs/functions/player/setPlayerSkillWeapon.md deleted file mode 100644 index 855f05b..0000000 --- a/python/docs/functions/player/setPlayerSkillWeapon.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerSkillWeapon -::: g2o.functions.player.setPlayerSkillWeapon \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerStrength.md b/python/docs/functions/player/setPlayerStrength.md deleted file mode 100644 index 2c22a05..0000000 --- a/python/docs/functions/player/setPlayerStrength.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerStrength -::: g2o.functions.player.setPlayerStrength \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerTalent.md b/python/docs/functions/player/setPlayerTalent.md deleted file mode 100644 index cb880f3..0000000 --- a/python/docs/functions/player/setPlayerTalent.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerTalent -::: g2o.functions.player.setPlayerTalent \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerVirtualWorld.md b/python/docs/functions/player/setPlayerVirtualWorld.md deleted file mode 100644 index 8f504d2..0000000 --- a/python/docs/functions/player/setPlayerVirtualWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerVirtualWorld -::: g2o.functions.player.setPlayerVirtualWorld \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerVisual.md b/python/docs/functions/player/setPlayerVisual.md deleted file mode 100644 index 004b4b0..0000000 --- a/python/docs/functions/player/setPlayerVisual.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerVisual -::: g2o.functions.player.setPlayerVisual \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerWeaponMode.md b/python/docs/functions/player/setPlayerWeaponMode.md deleted file mode 100644 index 3deeb74..0000000 --- a/python/docs/functions/player/setPlayerWeaponMode.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerWeaponMode -::: g2o.functions.player.setPlayerWeaponMode \ No newline at end of file diff --git a/python/docs/functions/player/setPlayerWorld.md b/python/docs/functions/player/setPlayerWorld.md deleted file mode 100644 index 794c51b..0000000 --- a/python/docs/functions/player/setPlayerWorld.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` setPlayerWorld -::: g2o.functions.player.setPlayerWorld \ No newline at end of file diff --git a/python/docs/functions/player/spawnPlayer.md b/python/docs/functions/player/spawnPlayer.md deleted file mode 100644 index 2282583..0000000 --- a/python/docs/functions/player/spawnPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` spawnPlayer -::: g2o.functions.player.spawnPlayer \ No newline at end of file diff --git a/python/docs/functions/player/stopAni.md b/python/docs/functions/player/stopAni.md deleted file mode 100644 index e50be7c..0000000 --- a/python/docs/functions/player/stopAni.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` stopAni -::: g2o.functions.player.stopAni \ No newline at end of file diff --git a/python/docs/functions/player/stopFaceAni.md b/python/docs/functions/player/stopFaceAni.md deleted file mode 100644 index 9868f31..0000000 --- a/python/docs/functions/player/stopFaceAni.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` stopFaceAni -::: g2o.functions.player.stopFaceAni \ No newline at end of file diff --git a/python/docs/functions/player/unequipItem.md b/python/docs/functions/player/unequipItem.md deleted file mode 100644 index e3506c0..0000000 --- a/python/docs/functions/player/unequipItem.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` unequipItem -::: g2o.functions.player.unequipItem \ No newline at end of file diff --git a/python/docs/functions/player/unspawnPlayer.md b/python/docs/functions/player/unspawnPlayer.md deleted file mode 100644 index 33e0d9d..0000000 --- a/python/docs/functions/player/unspawnPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` unspawnPlayer -::: g2o.functions.player.unspawnPlayer \ No newline at end of file diff --git a/python/docs/functions/player/useItem.md b/python/docs/functions/player/useItem.md deleted file mode 100644 index 33fb460..0000000 --- a/python/docs/functions/player/useItem.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` useItem -::: g2o.functions.player.useItem \ No newline at end of file diff --git a/python/docs/functions/player/useItemToState.md b/python/docs/functions/player/useItemToState.md deleted file mode 100644 index 38b5762..0000000 --- a/python/docs/functions/player/useItemToState.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` useItemToState -::: g2o.functions.player.useItemToState \ No newline at end of file diff --git a/python/docs/functions/streamer/findNearbyPlayers.md b/python/docs/functions/streamer/findNearbyPlayers.md deleted file mode 100644 index c2fe294..0000000 --- a/python/docs/functions/streamer/findNearbyPlayers.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` findNearbyPlayers -::: g2o.functions.streamer.findNearbyPlayers \ No newline at end of file diff --git a/python/docs/functions/streamer/getSpawnedPlayersForPlayer.md b/python/docs/functions/streamer/getSpawnedPlayersForPlayer.md deleted file mode 100644 index 3d5301e..0000000 --- a/python/docs/functions/streamer/getSpawnedPlayersForPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getSpawnedPlayersForPlayer -::: g2o.functions.streamer.getSpawnedPlayersForPlayer \ No newline at end of file diff --git a/python/docs/functions/streamer/getStreamedPlayersByPlayer.md b/python/docs/functions/streamer/getStreamedPlayersByPlayer.md deleted file mode 100644 index 6532fd8..0000000 --- a/python/docs/functions/streamer/getStreamedPlayersByPlayer.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getStreamedPlayersByPlayer -::: g2o.functions.streamer.getStreamedPlayersByPlayer \ No newline at end of file diff --git a/python/docs/functions/waypoint/getNearestWaypoint.md b/python/docs/functions/waypoint/getNearestWaypoint.md deleted file mode 100644 index 210aa26..0000000 --- a/python/docs/functions/waypoint/getNearestWaypoint.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getNearestWaypoint -::: g2o.functions.waypoint.getNearestWaypoint \ No newline at end of file diff --git a/python/docs/functions/waypoint/getWaypoint.md b/python/docs/functions/waypoint/getWaypoint.md deleted file mode 100644 index 3245be3..0000000 --- a/python/docs/functions/waypoint/getWaypoint.md +++ /dev/null @@ -1,2 +0,0 @@ -#`function` getWaypoint -::: g2o.functions.waypoint.getWaypoint \ No newline at end of file diff --git a/python/docs/howto/localdebug.md b/python/docs/howto/localdebug.md deleted file mode 100644 index 1d547fe..0000000 --- a/python/docs/howto/localdebug.md +++ /dev/null @@ -1,47 +0,0 @@ -## Debug with VSCode - -1. Install **debugpy** module - - `pip install debugpy` - -2. Add to your code listening to the default `5678` port with debug adapter - - ```python - import debugpy - debugpy.listen(5678, in_process_debug_adapter=True) - ``` - -3. Launch your G2O Server - -4. In VSCode, go to your Python script, press **F5** and select **Attach using Process ID** - - ![Screenshot](https://picloud.cc/images/97bf2c4c7821af4b32b7906ba5dbee2f.png) - -5. Find G2O Server process and select it - - ![Screenshot](https://picloud.cc/images/e438291ae8fe213fb6a4ff7ea57821f0.png) - -![Screenshot](https://picloud.cc/images/70621be4531719d40606dce7fec7a49b.png) - -!!! warning - Sometimes **debugpy** isn't terminating process even after server is closed. Keep an eye on process list while attaching, so you can terminate them manually. - -## Debug with PDB - -Python Debugger (PDB) is already implemented by default, so you can place breakpoints right away - -```python -@g2o.event('onTime') -def evtTime(**kwargs): - a = 5 - b = 246 - c = a * b - - breakpoint() - - print(kwargs) -``` - -That way PDB interface will show up on breakpoint encounter, and you can use it [as usual](https://docs.python.org/3/library/pdb.html) - -![Screenshot](https://picloud.cc/images/982c6932a818efb657406a9f4041067a.png) \ No newline at end of file diff --git a/python/docs/index.md b/python/docs/index.md deleted file mode 100644 index 9d8a5f8..0000000 --- a/python/docs/index.md +++ /dev/null @@ -1,34 +0,0 @@ -## How to use -1. Install [Python 3.13](https://www.python.org/downloads/release/python-3130/) -*Optionally, for Windows instead of installing Python, you can download Windows embeddable package from Python download page, and extract ZIP into your server folder* -1. Download latest module version from the **Release** page -2. Unzip downloaded archive into your server directory (you should now have **PyG2O.xYY.dll** and **g2o/** in your root server directory, or similar `.so` file if you're using linux) -3. Place .DLL module in the place you want and connect it with **config.xml** -```xml - -``` -4. Create **pyg2o_entry/** folder in your server root directory, and put an empty ``__init__.py`` file inside it - -Now, your **pyg2o_entry/** folder is a Python package and serves as an entry point. You can't rename it (at least for now), but inside this folder you can use any file structure you want. - -Your entry point should import PyG2O library: -```python -import g2o -# your code -``` -If you make package that uses PyG2O functions, then this package also should also contain import. - -## How to change entry point name -1. Create ``pyg2o.json`` in your root server folder -2. Place this content in it and change entry point name -```json -{ - "entry": "your_entry_name" -} -``` - -## How to add additional packages folder (use virtual environment) -You can create ``.pth`` file in your root server folder and it will be added to your ``sys.path`` before entry point - -## Examples -You can find default (example) scripts in [this repository](https://github.com/AURUMVORXX/PyG2O-DefaultScripts) \ No newline at end of file