override protected void OnInit(EventArgs e) { base.OnInit(e); if (errInitTemplates != "") { Response.Write(errInitTemplates); return; } tPath = MyCommFun.GetRootPath() + "/templates_portal/register.html"; PortalTemplate template = new PortalTemplate(tPath); template.tType = TemplateType.Index; template.OutPutHtml(templateIndexFileName); }
/// <summary> /// Used when adding a gateway to a dungeon based on an instance of PortalTemplate /// </summary> public Portal(PortalTemplate template) { this.template = template; this.direction = template.Direction; //can get modified }