Esempio n. 1
0
        /// <summary>
        /// 生成奖励.
        /// </summary>
        /// <param name="zone"></param>
        /// <param name="obj"></param>
        /// <param name="attacker"></param>
        /// <returns></returns>
        protected virtual RoleBattleAwardNotify GetRoleBattleAward(InstanceZone zone, InstanceUnit obj, InstancePlayer attacker)
        {
            RoleBattleAwardNotify ret = new RoleBattleAwardNotify();

            ret.MonsterID = obj.Info.ID;
            ret.RoleID    = attacker.PlayerUUID;
            return(ret);
        }
Esempio n. 2
0
        /// <summary>
        /// 向游戏服logic发送奖励信息.
        /// </summary>
        /// <param name="uuid"></param>
        /// <param name="notify"></param>
        protected virtual void NotifyLogicRoleAward(string uuid, RoleBattleAwardNotify notify)
        {
            var logic = service.GetPlayer(uuid);

            if (logic != null)
            {
                logic.logic_rpc_Invoke(notify);
            }
        }