EventActor.GetData C# (CSharp) Method

GetData() public method

public GetData ( ) : Hashtable
return Hashtable
    public Hashtable GetData()
    {
        Hashtable ht = new Hashtable();
        if(this.isPlayer) ht.Add("player", "true");
        if(this.showName) ht.Add("showname", "true");

        if(this.showName && (!this.isPlayer || (this.isPlayer && this.overrideName)))
        {
            ArrayList subs = new ArrayList();
            for(int i=0; i<this.dialogName.Length; i++)
            {
                Hashtable s = new Hashtable();
                s.Add(XMLHandler.NODE_NAME, "name");
                s.Add("id", i.ToString());
                s.Add(XMLHandler.CONTENT, this.dialogName[i]);
                subs.Add(s);
            }
            ht.Add(XMLHandler.NODES, subs);
        }
        return ht;
    }