Esempio n. 1
0
 public void Dispose()
 {
     Foothold = null;
     LadderRope = null;
     Life = null;
     Properties = null;
     Portals = null;
     Objs = null;
     Tiles = null;
     m_textureCache.Clear();
     Players.Clear();
 }
Esempio n. 2
0
        private void LoadProperties(NXNode node)
        {
            Properties = new MapProperties();
            Properties.Bgm = node["info"]["bgm"].ValueOrDie<string>();
            Properties.ReturnMap = (int)node["info"]["returnMap"].GetInt();
            Properties.ForcedReturnMap = node["info"]["forcedReturn"].GetInt();

            if (node["miniMap"] == null)
                return;

            Properties.Width = node["miniMap"]["width"].GetInt();
            Properties.Height = node["miniMap"]["height"].GetInt();
            Properties.CenterX = node["miniMap"]["centerX"].GetInt();
            Properties.CenterY = node["miniMap"]["centerY"].GetInt();

            //Properties.Botton = node["info"]["VRBottom"].GetInt();
            //Properties.Left = node["info"]["VRLeft"].GetInt();
            //Properties.Right = node["info"]["VRRight"].GetInt();
            //Properties.Top = node["info"]["VRTop"].GetInt();
        }