/// <summary> /// /// </summary> /// <param name="simobjectid"></param> public tsObject(int simobjectid) { _mSimObjectId = simobjectid.AsString(); dnTorque temp = dnTorque.self; _mtst = new TorqueScriptTemplate(ref temp); }
/// <summary> /// /// </summary> /// <param name="simobjectid"></param> public tsObject(string simobjectid) { dnTorque temp = dnTorque.self; _mtst = new TorqueScriptTemplate(ref temp); if (!simobjectid.IsNumeric()) { if (simobjectid.Trim() != "") { string old = simobjectid; simobjectid = _mtst.console.GetObjectID(simobjectid).AsString(); if (simobjectid.AsInt() == 0) { dnTorque.self.Error("WARNING:: COULD NOT RESOLVE '" + old + "' to an object."); } //throw new Exception("Could not resolve object '" + old + "'."); } } _mSimObjectId = simobjectid; }