2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 05.01.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_NETWORKMESSAGES_HPP
|
|
|
|
#define OPENMW_NETWORKMESSAGES_HPP
|
|
|
|
|
|
|
|
#include <MessageIdentifiers.h>
|
|
|
|
|
|
|
|
enum GameMessages
|
|
|
|
{
|
2017-04-23 05:35:29 +00:00
|
|
|
_ID_UNUSED = ID_USER_PACKET_ENUM+1,
|
2016-01-12 03:41:44 +00:00
|
|
|
ID_USER_MYID,
|
|
|
|
ID_USER_DISCONNECTED,
|
|
|
|
ID_CHAT_MESSAGE,
|
|
|
|
|
2016-07-23 14:02:06 +00:00
|
|
|
ID_HANDSHAKE,
|
2016-09-18 03:50:01 +00:00
|
|
|
ID_LOADED,
|
2016-08-30 05:24:31 +00:00
|
|
|
ID_GUI_MESSAGEBOX,
|
2017-05-29 01:43:52 +00:00
|
|
|
|
Implement inventory functions
AddItem, RemoveItem, GetItemName, GetItemCount, GetItemHealth, GetInventorySize SendInventory
Example:
```lua
tes3mp.AddItem(pid, "glass dagger", 1, 50)
tes3mp.AddItem(pid, "glass dagger", 1, -1)
tes3mp.SendInventory(pid)
tes3mp.RemoveItem(pid, "glass dagger", 1)
tes3mp.SendInventory(pid)
local invSize = tes3mp.GetInventorySize(pid) - 1
for i = 0, invSize do
print(("%s %d %d"):format(tes3mp.GetItemName(pid, i), tes3mp.GetItemCount(pid, i), tes3mp.GetItemHealth(pid, i)))
end
```
2016-10-22 18:57:37 +00:00
|
|
|
ID_GAME_TIME,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_GAME_WEATHER,
|
2017-05-16 16:25:31 +00:00
|
|
|
|
|
|
|
ID_PLAYER_BASEINFO,
|
|
|
|
ID_PLAYER_CHARGEN,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_ACTIVESKILLS,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_ANIM_FLAGS,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_ANIM_PLAY,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_ATTACK,
|
|
|
|
ID_PLAYER_ATTRIBUTE,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_BOOK,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_BOUNTY,
|
2017-01-20 08:30:50 +00:00
|
|
|
ID_PLAYER_CELL_CHANGE,
|
2017-01-26 11:49:20 +00:00
|
|
|
ID_PLAYER_CELL_STATE,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_CHARCLASS,
|
|
|
|
ID_PLAYER_DEATH,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_DISPOSITION,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_EQUIPMENT,
|
|
|
|
ID_PLAYER_FACTION,
|
|
|
|
ID_PLAYER_INVENTORY,
|
|
|
|
ID_PLAYER_JOURNAL,
|
2017-06-10 09:01:37 +00:00
|
|
|
ID_PLAYER_KILL_COUNT,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_LEVEL,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_MAP,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_POSITION,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_REGION_AUTHORITY,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_RESURRECT,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_REST,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_SKILL,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_PLAYER_SPEECH,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_PLAYER_SPELLBOOK,
|
|
|
|
ID_PLAYER_STATS_DYNAMIC,
|
2017-05-24 16:01:28 +00:00
|
|
|
ID_PLAYER_TOPIC,
|
2017-01-20 08:30:50 +00:00
|
|
|
|
2017-04-05 01:06:45 +00:00
|
|
|
ID_ACTOR_LIST,
|
|
|
|
ID_ACTOR_AUTHORITY,
|
2017-04-10 05:37:18 +00:00
|
|
|
ID_ACTOR_TEST,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_ACTOR_AI,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_ACTOR_ANIM_FLAGS,
|
2017-04-11 08:37:38 +00:00
|
|
|
ID_ACTOR_ANIM_PLAY,
|
|
|
|
ID_ACTOR_ATTACK,
|
|
|
|
ID_ACTOR_CELL_CHANGE,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_ACTOR_DEATH,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_ACTOR_EQUIPMENT,
|
2017-04-11 08:37:38 +00:00
|
|
|
ID_ACTOR_POSITION,
|
|
|
|
ID_ACTOR_SPEECH,
|
2017-05-16 16:25:31 +00:00
|
|
|
ID_ACTOR_STATS_DYNAMIC,
|
2017-04-05 01:06:45 +00:00
|
|
|
|
2017-05-24 16:01:28 +00:00
|
|
|
ID_OBJECT_ANIM_PLAY,
|
2016-10-25 09:15:27 +00:00
|
|
|
ID_OBJECT_DELETE,
|
|
|
|
ID_OBJECT_LOCK,
|
2016-10-25 09:53:18 +00:00
|
|
|
ID_OBJECT_MOVE,
|
2017-05-24 16:01:28 +00:00
|
|
|
ID_OBJECT_PLACE,
|
2016-10-25 11:28:39 +00:00
|
|
|
ID_OBJECT_ROTATE,
|
2017-05-24 16:01:28 +00:00
|
|
|
ID_OBJECT_SCALE,
|
2017-05-29 01:43:52 +00:00
|
|
|
ID_OBJECT_SPAWN,
|
2017-05-24 16:01:28 +00:00
|
|
|
ID_OBJECT_TRAP,
|
|
|
|
|
2017-02-04 11:14:37 +00:00
|
|
|
ID_CONTAINER,
|
2017-02-01 09:54:40 +00:00
|
|
|
ID_DOOR_STATE,
|
2016-11-20 20:54:49 +00:00
|
|
|
ID_MUSIC_PLAY,
|
2016-10-26 09:25:50 +00:00
|
|
|
ID_VIDEO_PLAY,
|
|
|
|
|
|
|
|
ID_SCRIPT_LOCAL_SHORT,
|
|
|
|
ID_SCRIPT_LOCAL_FLOAT,
|
2016-10-26 21:41:14 +00:00
|
|
|
ID_SCRIPT_MEMBER_SHORT,
|
2016-11-03 18:59:39 +00:00
|
|
|
ID_SCRIPT_GLOBAL_SHORT,
|
|
|
|
|
2017-06-20 02:28:45 +00:00
|
|
|
ID_GAME_SETTINGS,
|
2017-03-05 08:46:11 +00:00
|
|
|
ID_GAME_PREINIT
|
2016-01-12 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
2017-04-23 05:31:01 +00:00
|
|
|
enum OrderingChannel
|
|
|
|
{
|
|
|
|
CHANNEL_SYSTEM = 0,
|
|
|
|
CHANNEL_ACTOR,
|
|
|
|
CHANNEL_PLAYER,
|
|
|
|
CHANNEL_WORLDEVENT,
|
|
|
|
CHANNEL_MASTER
|
|
|
|
};
|
|
|
|
|
2016-01-12 03:41:44 +00:00
|
|
|
|
|
|
|
#endif //OPENMW_NETWORKMESSAGES_HPP
|