public Msg_EmotionIndicate( Tbl_Emotion_Record _record) { m_MessageType = eMessageType.EMOTION_INDICATION; record_ = _record; }
public override void LoadTable(string _path) { try{ XmlElement root = GetXmlRootElement(_path); XmlNodeList nodes = root.ChildNodes; List<char> listChar = new List<char>(); foreach(XmlNode node in nodes) { Tbl_Emotion_Record record = new Tbl_Emotion_Record((XmlElement)node); m_ResourceTable.Add(record.Index, record); m_dicCommand.Add(record.EmotionName, record); foreach(string emotion in record.listCommand) { m_mddicEmotion.Add(emotion[0], record); listChar.Add(emotion[0]); } } m_arChar = listChar.ToArray(); } catch(System.Exception e) { Debug.LogError(e); } }