add android.* human.*
This commit is contained in:
parent
f1c2776777
commit
eb52effa0f
3
server/gameserver/android.cc
Normal file
3
server/gameserver/android.cc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include "precompile.h"
|
||||||
|
|
||||||
|
#include "android.h"
|
8
server/gameserver/android.h
Normal file
8
server/gameserver/android.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "human.h"
|
||||||
|
|
||||||
|
class Android : public Human
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
enum EntityType_e
|
enum EntityType_e
|
||||||
{
|
{
|
||||||
|
ET_None = 0,
|
||||||
ET_Player = 1,
|
ET_Player = 1,
|
||||||
ET_Obstacle = 2,
|
ET_Obstacle = 2,
|
||||||
ET_Building = 3,
|
ET_Building = 3,
|
||||||
@ -17,6 +18,7 @@ class Entity
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
unsigned short entity_uniid = 0;
|
unsigned short entity_uniid = 0;
|
||||||
|
EntityType_e entity_type = ET_None;
|
||||||
Vector2D pos;
|
Vector2D pos;
|
||||||
Vector2D dir;
|
Vector2D dir;
|
||||||
int updated_times = 0;
|
int updated_times = 0;
|
||||||
|
5
server/gameserver/human.cc
Normal file
5
server/gameserver/human.cc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include "precompile.h"
|
||||||
|
|
||||||
|
#include "human.h"
|
||||||
|
|
||||||
|
|
8
server/gameserver/human.h
Normal file
8
server/gameserver/human.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "entity.h"
|
||||||
|
|
||||||
|
class Human : public Entity
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "entity.h"
|
#include "human.h"
|
||||||
#include "GGListener.h"
|
#include "GGListener.h"
|
||||||
|
|
||||||
namespace cs
|
namespace cs
|
||||||
@ -16,7 +16,7 @@ namespace cs
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Room;
|
class Room;
|
||||||
class Player : public Entity
|
class Player : public Human
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum { HID = HID_Player };
|
enum { HID = HID_Player };
|
||||||
|
@ -601,18 +601,18 @@ message SMPlayerInfo
|
|||||||
//帧事件
|
//帧事件
|
||||||
message SMUpdate
|
message SMUpdate
|
||||||
{
|
{
|
||||||
repeated int32 del_objids = 2;
|
repeated int32 del_objids = 2; //对象-待删除(移出视野)
|
||||||
repeated MFObjectFull full_objects = 3;
|
repeated MFObjectFull full_objects = 3; //对象-全量(出现在视野)
|
||||||
repeated MFObjectPart part_objects = 4;
|
repeated MFObjectPart part_objects = 4; //对象-部分(用于插值更新)
|
||||||
optional int32 active_player_id = 5; //当前活跃玩家id
|
optional int32 active_player_id = 5; //当前活跃玩家id(如果玩家死亡后是观战对象的id)
|
||||||
optional MFPlayerData active_player_data = 6; //活跃玩家数据
|
optional MFPlayerData active_player_data = 6; //活跃玩家数据(如果玩家死亡后是观战对象的数据)
|
||||||
optional int32 alive_count = 15; //存活数量
|
optional int32 alive_count = 15; //存活数量
|
||||||
optional int32 gasT = 16;
|
optional int32 gasT = 16;
|
||||||
optional MFGasData gas_data = 17;
|
optional MFGasData gas_data = 17;
|
||||||
repeated MFTeamData team_data = 18;
|
repeated MFTeamData team_data = 18;
|
||||||
repeated MFTeamData teams = 19;
|
repeated MFTeamData teams = 19;
|
||||||
repeated MFBullet bullets = 20; //子弹
|
repeated MFBullet bullets = 20; //子弹
|
||||||
repeated MFShot shots = 21;
|
repeated MFShot shots = 21; //射击
|
||||||
repeated MFExplosion explosions = 22;
|
repeated MFExplosion explosions = 22;
|
||||||
repeated MFEmote emotes = 23;
|
repeated MFEmote emotes = 23;
|
||||||
optional int32 ack = 24;
|
optional int32 ack = 24;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user