Ejemplo n.º 1
0
        protected override Dictionary<String, Object> OnValidate()
        {
            if (!TypeTextBox.TextBox.TextIsValid())
            {
                CallInformationDialogBox(InformationDialogBox.EType.Error, new String[] { InformationDialogBox.Instance.GetTypeErrorStr() });
                return base.OnValidate();
            }

            Ground ground = new Ground();
            ground.SetType(TypeTextBox.TextBox.Text, true);
            ground.Init(WidthUDBox.GetCurrentValue(), HeightUDBox.GetCurrentValue());
            ground.FillWithTile(0, Create.Tile(MapMan.DEFAULT_GROUND_TILE));
            ground.ToScript();

            Map = new Map();
            Map.SetType(TypeTextBox.TextBox.Text, true);

            return new Dictionary<String, Object>
            {
                { "Map", Map }
            };
        }