--[[ 服务器下发的一般的场景对象数据 ]] OtherVo = OtherVo or BaseClass(BaseVo) function OtherVo:__init() end function OtherVo:__defineVar() return { _class_type = self, --_cid = self._id, _iid = _in_obj_ins_id, _use_delete_method = false, vo_type = SceneBaseType.Other, pos_x = 0, --X坐标(int16) pos_y = 0 ,--Y坐标(int16) instance_id = 0 , --怪物唯一标识(int32) name = "", --怪物名字(string) model_res = 0 ,--资源(int32) effect_res = "", --特效资源(string) move_speed = 160, --怪物速度(int16) can_pick = 1 , --是否可点击(0否 1是) prePoseState = PoseState.STAND, poseState = PoseState.STAND, } end function OtherVo:ReadFromProtocal() self.pos_x, --X坐标(int16) self.pos_y, --Y坐标(int16) self.instance_id, --怪物唯一标识(int32) self.name, self.model_res, --资源(int32) self.effect_res, --特效资源(string) self.move_speed, --怪物速度(int16) self.can_pick, --是否可点击 self.owner_team_id, --所属队伍id self.owner_player_id = --所属玩家id UserMsgAdapter.ReadFmt("hhisishcll") print("篝火==========:", self.owner_team_id, self.owner_player_id, RoleManager.Instance.mainRoleInfo.role_id) end