--百团护送 GWFollowerVo = GWFollowerVo or BaseClass(BaseVo) local GWFollowerVo = GWFollowerVo function GWFollowerVo:__init() end function GWFollowerVo:__defineVar() return { _class_type = self, _iid = _in_obj_ins_id, _use_delete_method = false, vo_type = SceneBaseType.GWFollower, pos_x = 0, --X像素坐标(int16) pos_y = 0, --Y像素坐标(int16) hp = 100, --当前hp(int32) maxHp = 100, --最大hp(int32) name = "", --名字(string) move_speed = 160, --速度(int16) ghost_mode = 0, hide_flag = 0 , --是否不可见(int8) warGroup = 0, --战斗分组(int8) gwfollower_id = 0, --护送粮草id texture_res = 0, --贴图 poseState = PoseState.STAND, birth_angle = 270, --出生角度 水平向右为0 逆时针一圈为360度 owner_id = 0, --所属玩家id owner_vo = nil, --所属玩家 } end function GWFollowerVo:SetVo(owner_vo) self.owner_vo = owner_vo self.owner_id = owner_vo.id self.gwfollower_id = owner_vo:GetFlagsByKey(RoleVo.Act_Flag.GUILD_WAR_EQUIP_CAMION)-- 10010203 --owner_vo.escort_state if self.owner_vo then self.name = owner_vo.name .. "的粮草" end end --取模型id function GWFollowerVo:GetGWFollowerClotheId() if self.gwfollower_id == GuildModel.GuildWarTarget.BigRice then return GuildModel.GuildWarModelRes.BigRice elseif self.gwfollower_id == GuildModel.GuildWarTarget.MiddleRice then return GuildModel.GuildWarModelRes.MiddleRice else return GuildModel.GuildWarModelRes.SmallRice end end function GWFollowerVo:GetTextureId() if tonumber(self.texture_res) ~= 0 then return self:GetGWFollowerClotheId() .. "_" .. self.texture_res end end function GWFollowerVo:__delete() end function GWFollowerVo:SetGWFollowerId(gwfollower_id) self.gwfollower_id = gwfollower_id end