Ejemplo n.º 1
0
        internal static void Execute(object msg, User user)
        {
            Msg_CRC_StopGfxImpact impact_msg = msg as Msg_CRC_StopGfxImpact;

            if (null != impact_msg)
            {
                Scene scene = user.OwnRoom.GetActiveScene();
                if (null != scene)
                {
                    CharacterInfo character = scene.SceneContext.GetCharacterInfoById(impact_msg.target_Id);
                    if (null != character && (character.GetId() == user.RoleId || character.OwnerId == user.RoleId))
                    {
                        ImpactSystem.Instance.OnGfxStopImpact(character, impact_msg.impact_Id);
                    }
                    else
                    {
                        if (null == character)
                        {
                            LogSys.Log(LOG_TYPE.ERROR, "StopGfxImpactHandler, charactor {0} not exist", impact_msg.target_Id);
                        }
                        else
                        {
                            LogSys.Log(LOG_TYPE.ERROR, "StopGfxImpactHandler, charactor {0} or owner {1} not user {2}", character.GetId(), character.OwnerId, user.RoleId);
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
    internal static void Execute(object msg, NetConnection conn, NetworkSystem networkSystem)
    {
        Msg_CRC_StopGfxImpact impact_msg = msg as Msg_CRC_StopGfxImpact;

        if (null != impact_msg)
        {
        }
    }
Ejemplo n.º 3
0
        internal void SyncStopGfxImpact(int targetId,
                                        int impactId)
        {
            Msg_CRC_StopGfxImpact bd = new Msg_CRC_StopGfxImpact();

            bd.impact_Id = impactId;
            bd.target_Id = targetId;
            SendMessage(bd);
        }
Ejemplo n.º 4
0
    internal static void Execute(object msg, RoomPeer peer)
    {
        Msg_CRC_StopGfxImpact _msg = msg as Msg_CRC_StopGfxImpact;

        if (null == _msg)
        {
            return;
        }
        peer.BroadCastMsgToRoom(_msg);
    }