public Hashtable GetData(Hashtable ht)
{
ArrayList s = new ArrayList();
s.Add(HashtableHelper.GetContentHashtable(GlobalEvent.EVENTFILE, this.eventFile));
ht.Add("type", this.eventType.ToString());
if(this.IsAutoType())
{
ht.Add("timeout", this.timeout.ToString());
ht.Add("inpause", this.inPause.ToString());
for(int i=0; i<this.controlType.Length; i++)
{
if(this.controlType[i])
{
s.Add(HashtableHelper.GetTitleHashtable(GlobalEvent.CONTROLTYPE, i));
}
}
s.Add(this.variables.GetData(GlobalEvent.VARIABLES));
}
ht.Add("prefabs", this.prefabName.Length.ToString());
for(int i=0; i<this.prefabName.Length; i++)
{
if(this.prefabName[i] != "")
{
s.Add(HashtableHelper.GetContentHashtable(GlobalEvent.PREFAB, this.prefabName[i], i));
}
}
ht.Add("audioclips", this.audioName.Length.ToString());
for(int i=0; i<this.audioName.Length; i++)
{
if(this.audioName[i] != "")
{
s.Add(HashtableHelper.GetContentHashtable(GlobalEvent.AUDIOCLIP, this.audioName[i], i));
}
}
ht.Add(XMLHandler.NODES, s);
return ht;
}