public override BaseEditor CreateObject(ref BaseEditor parent, Mogre.NameValuePairList parameters) { LightEditor obj = new LightEditor(); NameValuePairList.Iterator ni; if ((ni = parameters.Find("Init")) != parameters.End()) { parameters["Name"] = "Light" + MogitorsRoot.Instance.CreateUniqueID("Light", "", -1); } obj.ProcessParameters(parameters); obj.Parent = parent; InstanceCount++; return(obj); }
public override BaseEditor CreateObject(ref BaseEditor parent, Mogre.NameValuePairList parameters) { LightEditor obj = new LightEditor(); NameValuePairList.Iterator ni; if ((ni = parameters.Find("Init")) != parameters.End()) { parameters["Name"] = "Light" + MogitorsRoot.Instance.CreateUniqueID("Light", "", -1); } obj.ProcessParameters(parameters); obj.Parent = parent; InstanceCount++; return obj; }