GameFramework.Msg_CR_StopSkillHandler.Execute C# (CSharp) Method

Execute() static private method

static private Execute ( object msg, User user ) : void
msg object
user User
return void
        internal static void Execute(object msg, User user)
        {
            Msg_CR_StopSkill stopMsg = msg as Msg_CR_StopSkill;
            if (null == stopMsg) return;
            EntityInfo userInfo = user.Info;
            if (null == userInfo) return;
            Scene scene = user.OwnRoom.ActiveScene;
            if (null != scene) {
                scene.SkillSystem.StopAllSkill(userInfo.GetId(), true);

                Msg_RC_NpcStopSkill retMsg = DataSyncUtility.BuildNpcStopSkillMessage(userInfo);
                scene.NotifyAllUser(RoomMessageDefine.Msg_RC_NpcStopSkill, retMsg);
            }
        }
Msg_CR_StopSkillHandler