MapServer.PlayerObject.Alive C# (CSharp) Method

Alive() public method

public Alive ( bool isSitu = false ) : void
isSitu bool
return void
        public void Alive(bool isSitu = false)
        {
            this.GetTimerSystem().DeleteStatus(GameStruct.RoleStatus.STATUS_DIE);
            //满血 满蓝
            m_bGhost = false;

            this.ChangeAttribute(UserAttribute.STATUS, 0, true);
            this.ChangeAttribute(UserAttribute.LOOKFACE, GetLookFace(), true);
            this.ChangeAttribute(UserAttribute.LIFE, (int)this.GetBaseAttr().life_max);
            this.ChangeAttribute(UserAttribute.MANA, (int)this.GetBaseAttr().mana_max);
            //回城
            if (!isSitu)
            {
                this.ReCallMap();
            }
            byte[] tick = { 16, 0, 244, 3, 84, 66, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
            this.GetGamePackKeyEx().EncodePacket(ref tick, tick.Length);
            this.SendData(tick);
        }