GameFramework.ServerSkillSystem.SendMessage C# (CSharp) Method

SendMessage() private method

private SendMessage ( int actorId, int skillId, int seq, string msgId, object>.Dictionary locals ) : void
actorId int
skillId int
seq int
msgId string
locals object>.Dictionary
return void
        internal void SendMessage(int actorId, int skillId, int seq, string msgId, Dictionary<string, object> locals)
        {
            EntityInfo obj = m_Scene.EntityController.GetGameObject(actorId);
            if (null != obj) {
                SkillLogicInfo logicInfo = m_SkillLogicInfos.Find(info => info.GfxObj == obj && info.SkillId == skillId && info.Seq == seq);
                if (null != logicInfo && null != logicInfo.SkillInst) {
                    if (null != locals) {
                        foreach (KeyValuePair<string, object> pair in locals) {
                            logicInfo.SkillInst.SetVariable(pair.Key, pair.Value);
                        }
                    }
                    logicInfo.SkillInst.SendMessage(msgId);
                }
            }
        }