コード例 #1
0
        //复活
        public void Relive(eReliveMode mode)
        {
            this.CurHP = this.FinalRoleValue.MaxHP;
            this.CurMP = this.FinalRoleValue.MaxMP;

            var pkg = new RPC.PackageWriter();

            //Wuxia.H_RpcRoot.smInstance.RPC_OnChiefRoleRelive(pkg, GetPosition().X, this.GetPosition().Z);
            //pkg.DoCommandPlanes2Client(Planes2GateConnect, ClientLinkId);
            Wuxia.H_RpcRoot.smInstance.HIndex(pkg, Id).RPC_Relive(pkg, GetPosition().X, this.GetPosition().Z);
            HostMap.SendPkg2Clients(null, this.GetPosition(), pkg);
        }
コード例 #2
0
        public void RPC_Relive(byte _mode, RPC.RPCForwardInfo fwd)
        {
            eReliveMode mode = (eReliveMode)_mode;

            Relive(mode);
        }