BBGamelib.flash.imp.DefineMovie.trace C# (CSharp) Method

trace() public method

public trace ( int indent ) : string
indent int
return string
		public override string trace (int indent){
			string indent0 = Utils.RepeatString(indent);
			string indent2 = Utils.RepeatString(indent+2);
			string s = base.trace (indent) + " MaxDepth: " + _maxDepth + "\n";
			if (_label_indexs.Count > 0) {
				s += indent0 + "Labels("+_label_indexs.Count + "):\n";
				var enumerator = _label_indexs.GetEnumerator();
				while (enumerator.MoveNext()) {
					KeyValuePair<string, int> kv = enumerator.Current;
					string label = kv.Key;
					s += indent2 + label + "\n";
				}
			}
			if (_frames.Length > 0) {
				s += indent0 + "FrameCount(" + _frames.Length +"):\n";
				for(int i=0; i<_frames.Length; i++){
					FrameObject frame = _frames[i];
					s += frame.trace(indent + 2) + "\n";
				}
			}
			return s;
		}
	}