public void Editor_Selected_World(string[] str) { string name = str[1]; PageInfo.Map = null; PageInfo.World = Univers.FindWorld(name); Editor.Clear(); Editor.World = PageInfo.World; SendWorld(); SendMapNames(); }
protected virtual void FindPageInfo() { string id = Session["ID"] as string; if (id != null) { PageInfo = Univers.FindGameInfo(id); } if (PageInfo == null) { PageInfo = CreatePageInfo(); PageInfo.ID = Info.Random.Next().ToString(); Session["ID"] = PageInfo.ID; Univers.Add(PageInfo); //Supprimer!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! PageInfo.Templates = Info.TemplatesImages; PageInfo.Animations = Animations.List; } }
public void Editor_New_World(string[] str) { string name = str[1]; string fulltype = str[2]; if (fulltype == "") { fulltype = "Core.World"; } Editor.NewWorld(name, fulltype); PageInfo.World = Editor.World; //Temporaire!!!!!!!!!! //CF: WorldNames (Changez pour le placez dans Editor et ajouter une ID Administrateur) Univers.Add(PageInfo.World); //GameInfo.World = Univers.NewWorld(name, fulltype); SendWorld(); SendWorldNames(); SendMapNames(); }