internal void SyncPlayerStopSkill(EntityInfo entity) { if (entity.HaveState(CharacterPropertyEnum.x3002_昏睡)) { return; } Msg_CR_StopSkill bd = new Msg_CR_StopSkill(); SendMessage(RoomMessageDefine.Msg_CR_StopSkill, bd); }
internal void SyncPlayerStopSkill(EntityInfo entity) { if (entity.IsHaveStateFlag(CharacterState_Type.CST_Sleep)) { return; } Msg_CR_StopSkill bd = new Msg_CR_StopSkill(); SendMessage(RoomMessageDefine.Msg_CR_StopSkill, bd); }
public 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.OwnRoomUserManager.ActiveScene; if (null != scene) { Msg_RC_NpcStopSkill retMsg = DataSyncUtility.BuildNpcStopSkillMessage(userInfo); scene.NotifyAllUser(RoomMessageDefine.Msg_RC_NpcStopSkill, retMsg); } }
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); } }