implemented all missing UDMF type handlers

This commit is contained in:
codeimp 2009-01-15 10:54:51 +00:00
parent 24c07c4baa
commit d8096f6dfb
28 changed files with 838 additions and 20 deletions

View file

@ -252,6 +252,7 @@ Field data types:
14 = thing tag (integer) *
15 = linedef tag (integer) *
16 = enum option (string)
17 = angle in degrees (float)
*/
universalfields
{
@ -411,13 +412,13 @@ universalfields
rotationfloor
{
type = 8;
type = 17;
default = 0.0f;
}
rotationceiling
{
type = 8;
type = 17;
default = 0.0f;
}

View file

@ -20,6 +20,7 @@ all supported data types:
14 = thing tag (integer) *
15 = linedef tag (integer) *
16 = enum option (string)
17 = angle in degrees (float)
- Only types indicates with * are usable for standard hexen args
- When no type is specified, the default type is 0 (integer)

View file

@ -676,6 +676,12 @@
<EmbeddedResource Include="Resources\ThingBox.png" />
<EmbeddedResource Include="Resources\Nothing.png" />
<EmbeddedResource Include="Resources\UnknownThing.png" />
<Compile Include="Types\AngleDegreesFloatHandler.cs" />
<Compile Include="Types\AngleDegreesHandler.cs" />
<Compile Include="Types\AngleRadiansHandler.cs" />
<Compile Include="Types\LinedefTagHandler.cs" />
<Compile Include="Types\SectorTagHandler.cs" />
<Compile Include="Types\ThingTagHandler.cs" />
<Compile Include="VisualModes\IVisualPickable.cs" />
<Compile Include="General\BinaryHeap.cs" />
<Compile Include="Geometry\Plane.cs" />
@ -688,6 +694,12 @@
<Compile Include="VisualModes\VisualCamera.cs" />
<Compile Include="VisualModes\VisualPickResult.cs" />
<Compile Include="VisualModes\VisualThing.cs" />
<Compile Include="Windows\AngleForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\AngleForm.Designer.cs">
<DependentUpon>AngleForm.cs</DependentUpon>
</Compile>
<None Include="Resources\Script2.png" />
<None Include="Resources\ScriptCompile.png" />
<None Include="Resources\ScriptConstant.xpm" />
@ -736,6 +748,10 @@
<SubType>Designer</SubType>
<DependentUpon>ClickableNumericTextbox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\AngleForm.resx">
<SubType>Designer</SubType>
<DependentUpon>AngleForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\BitFlagsForm.resx">
<SubType>Designer</SubType>
<DependentUpon>BitFlagsForm.cs</DependentUpon>

View file

@ -109,7 +109,8 @@ namespace CodeImp.DoomBuilder.Map
s.rwInt(ref type);
switch((UniversalType)type)
{
case UniversalType.AngleDegrees:
case UniversalType.AngleRadians:
case UniversalType.AngleDegreesFloat:
case UniversalType.Float:
{
float v = 0.0f;
@ -118,8 +119,8 @@ namespace CodeImp.DoomBuilder.Map
value = v;
break;
}
case UniversalType.AngleRadians:
case UniversalType.AngleDegrees:
case UniversalType.Color:
case UniversalType.EnumBits:
case UniversalType.EnumOption:

View file

@ -0,0 +1,114 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Windows;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.AngleDegreesFloat, "Degrees (Decimal)", true)]
internal class AngleDegreesFloatHandler : TypeHandler
{
#region ================== Constants
#endregion
#region ================== Variables
private float value;
#endregion
#region ================== Properties
public override bool IsBrowseable { get { return true; } }
#endregion
#region ================== Constructor
#endregion
#region ================== Methods
public override void Browse(IWin32Window parent)
{
int oldvalue = (int)Math.Round(value);
int newvalue = AngleForm.ShowDialog(parent, oldvalue);
if(newvalue != oldvalue) value = (float)newvalue;
}
public override void SetValue(object value)
{
float result;
// Null?
if(value == null)
{
this.value = 0.0f;
}
// Already an int or float?
else if((value is int) || (value is float))
{
// Set directly
this.value = (float)value;
}
else
{
// Try parsing as string
if(float.TryParse(value.ToString(), NumberStyles.Float, CultureInfo.CurrentCulture, out result))
{
this.value = result;
}
else
{
this.value = 0.0f;
}
}
}
public override object GetValue()
{
return this.value;
}
public override int GetIntValue()
{
return (int)this.value;
}
public override string GetStringValue()
{
return this.value.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,112 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Windows;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.AngleDegrees, "Degrees (Integer)", true)]
internal class AngleDegreesHandler : TypeHandler
{
#region ================== Constants
#endregion
#region ================== Variables
private int value;
#endregion
#region ================== Properties
public override bool IsBrowseable { get { return true; } }
#endregion
#region ================== Constructor
#endregion
#region ================== Methods
public override void Browse(IWin32Window parent)
{
value = AngleForm.ShowDialog(parent, value);
}
public override void SetValue(object value)
{
int result;
// Null?
if(value == null)
{
this.value = 0;
}
// Already an int?
else if(value is int)
{
// Set directly
this.value = (int)value;
}
else
{
// Try parsing as string
if(int.TryParse(value.ToString(), NumberStyles.Integer, CultureInfo.CurrentCulture, out result))
{
this.value = result;
}
else
{
this.value = 0;
}
}
}
public override object GetValue()
{
return this.value;
}
public override int GetIntValue()
{
return this.value;
}
public override string GetStringValue()
{
return this.value.ToString();
}
#endregion
}
}

View file

@ -0,0 +1,113 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Windows;
using CodeImp.DoomBuilder.Geometry;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.AngleRadians, "Radians", true)]
internal class AngleRadiansHandler : TypeHandler
{
#region ================== Constants
#endregion
#region ================== Variables
private float value;
#endregion
#region ================== Properties
public override bool IsBrowseable { get { return true; } }
#endregion
#region ================== Constructor
#endregion
#region ================== Methods
public override void Browse(IWin32Window parent)
{
value = Angle2D.DoomToReal(AngleForm.ShowDialog(parent, Angle2D.RealToDoom(value)));
}
public override void SetValue(object value)
{
float result;
// Null?
if(value == null)
{
this.value = 0.0f;
}
// Already an int or float?
else if((value is int) || (value is float))
{
// Set directly
this.value = (float)value;
}
else
{
// Try parsing as string
if(float.TryParse(value.ToString(), NumberStyles.Float, CultureInfo.CurrentCulture, out result))
{
this.value = result;
}
else
{
this.value = 0.0f;
}
}
}
public override object GetValue()
{
return this.value;
}
public override int GetIntValue()
{
return (int)this.value;
}
public override string GetStringValue()
{
return this.value.ToString();
}
#endregion
}
}

View file

@ -31,7 +31,7 @@ using CodeImp.DoomBuilder.Config;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(3, "Boolean", true)]
[TypeHandler(UniversalType.Boolean, "Boolean", true)]
internal class BoolHandler : TypeHandler
{
#region ================== Constants

View file

@ -34,7 +34,7 @@ using System.Drawing;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(10, "Color", true)]
[TypeHandler(UniversalType.Color, "Color", true)]
internal class ColorHandler : TypeHandler
{
#region ================== Constants

View file

@ -33,7 +33,7 @@ using CodeImp.DoomBuilder.Windows;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(12, "Options", false)]
[TypeHandler(UniversalType.EnumBits, "Options", false)]
internal class EnumBitsHandler : TypeHandler
{
#region ================== Constants

View file

@ -31,7 +31,7 @@ using CodeImp.DoomBuilder.Config;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(11, "Setting", false)]
[TypeHandler(UniversalType.EnumOption, "Setting", false)]
internal class EnumOptionHandler : TypeHandler
{
#region ================== Constants

View file

@ -31,7 +31,7 @@ using CodeImp.DoomBuilder.Config;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(16, "Setting", false)]
[TypeHandler(UniversalType.EnumStrings, "Setting", false)]
internal class EnumStringsHandler : TypeHandler
{
#region ================== Constants

View file

@ -32,7 +32,7 @@ using CodeImp.DoomBuilder.Windows;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(7, "Flat", true)]
[TypeHandler(UniversalType.Flat, "Flat", true)]
internal class FlatHandler : TypeHandler
{
#region ================== Constants

View file

@ -30,7 +30,7 @@ using System.Diagnostics;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(1, "Decimal", true)]
[TypeHandler(UniversalType.Float, "Decimal", true)]
internal class FloatHandler : TypeHandler
{
#region ================== Constants

View file

@ -30,7 +30,7 @@ using System.Diagnostics;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(0, "Integer", true)]
[TypeHandler(UniversalType.Integer, "Integer", true)]
internal class IntegerHandler : TypeHandler
{
#region ================== Constants

View file

@ -0,0 +1,40 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Windows;
using System.Windows.Forms;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.LinedefTag, "Linedef Tag", true)]
internal class LinedefTagHandler : IntegerHandler
{
}
}

View file

@ -33,7 +33,7 @@ using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(4, "Linedef Action", true)]
[TypeHandler(UniversalType.LinedefType, "Linedef Action", true)]
internal class LinedefTypeHandler : TypeHandler
{
#region ================== Constants

View file

@ -33,7 +33,7 @@ using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(5, "Sector Effect", true)]
[TypeHandler(UniversalType.SectorEffect, "Sector Effect", true)]
internal class SectorEffectHandler : TypeHandler
{
#region ================== Constants

View file

@ -0,0 +1,40 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Windows;
using System.Windows.Forms;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.SectorTag, "Sector Tag", true)]
internal class SectorTagHandler : IntegerHandler
{
}
}

View file

@ -32,7 +32,7 @@ using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(2, "Text", true)]
[TypeHandler(UniversalType.String, "Text", true)]
internal class StringHandler : TypeHandler
{
#region ================== Constants

View file

@ -32,7 +32,7 @@ using CodeImp.DoomBuilder.Windows;
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(6, "Texture", true)]
[TypeHandler(UniversalType.Texture, "Texture", true)]
internal class TextureHandler : TypeHandler
{
#region ================== Constants

View file

@ -0,0 +1,40 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Data;
using System.IO;
using System.Diagnostics;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Windows;
using System.Windows.Forms;
#endregion
namespace CodeImp.DoomBuilder.Types
{
[TypeHandler(UniversalType.ThingTag, "Thing Tag", true)]
internal class ThingTagHandler : IntegerHandler
{
}
}

View file

@ -57,10 +57,10 @@ namespace CodeImp.DoomBuilder.Types
#region ================== Constructor / Destructor
// Constructor
public TypeHandlerAttribute(int index, string name, bool customusable)
public TypeHandlerAttribute(UniversalType index, string name, bool customusable)
{
// Initialize
this.index = index;
this.index = (int)index;
this.name = name;
this.customusable = customusable;
}

View file

@ -45,6 +45,7 @@ namespace CodeImp.DoomBuilder.Types
SectorTag = 13,
ThingTag = 14,
LinedefTag = 15,
EnumStrings = 16
EnumStrings = 16,
AngleDegreesFloat = 17
}
}

98
Source/Windows/AngleForm.Designer.cs generated Normal file
View file

@ -0,0 +1,98 @@
namespace CodeImp.DoomBuilder.Windows
{
partial class AngleForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if(disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.angle = new CodeImp.DoomBuilder.Controls.AngleControl();
this.cancel = new System.Windows.Forms.Button();
this.apply = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// angle
//
this.angle.BackColor = System.Drawing.SystemColors.Control;
this.angle.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.angle.Location = new System.Drawing.Point(62, 22);
this.angle.Name = "angle";
this.angle.Size = new System.Drawing.Size(80, 80);
this.angle.TabIndex = 0;
this.angle.Value = 0;
//
// cancel
//
this.cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancel.Location = new System.Drawing.Point(105, 131);
this.cancel.Name = "cancel";
this.cancel.Size = new System.Drawing.Size(91, 25);
this.cancel.TabIndex = 26;
this.cancel.Text = "Cancel";
this.cancel.UseVisualStyleBackColor = true;
this.cancel.Click += new System.EventHandler(this.cancel_Click);
//
// apply
//
this.apply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.apply.Location = new System.Drawing.Point(8, 131);
this.apply.Name = "apply";
this.apply.Size = new System.Drawing.Size(91, 25);
this.apply.TabIndex = 25;
this.apply.Text = "OK";
this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click);
//
// AngleForm
//
this.AcceptButton = this.apply;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.CancelButton = this.cancel;
this.ClientSize = new System.Drawing.Size(204, 165);
this.Controls.Add(this.cancel);
this.Controls.Add(this.apply);
this.Controls.Add(this.angle);
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AngleForm";
this.Opacity = 0;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Angle";
this.ResumeLayout(false);
}
#endregion
private CodeImp.DoomBuilder.Controls.AngleControl angle;
private System.Windows.Forms.Button cancel;
private System.Windows.Forms.Button apply;
}
}

109
Source/Windows/AngleForm.cs Normal file
View file

@ -0,0 +1,109 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Data;
using CodeImp.DoomBuilder.IO;
using System.IO;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Editing;
using CodeImp.DoomBuilder.Controls;
#endregion
namespace CodeImp.DoomBuilder.Windows
{
public partial class AngleForm : DelayedForm
{
#region ================== Variables
private bool setup;
private int value;
#endregion
#region ================== Properties
public int Value { get { return value; } }
#endregion
#region ================== Constructor
// Constructor
public AngleForm()
{
InitializeComponent();
}
#endregion
#region ================== Events
// Cancel clicked
private void cancel_Click(object sender, EventArgs e)
{
// Close
DialogResult = DialogResult.Cancel;
this.Close();
}
// OK clicked
private void apply_Click(object sender, EventArgs e)
{
this.value = angle.Value;
// Done
DialogResult = DialogResult.OK;
this.Close();
}
#endregion
#region ================== Methods
// Setup from EnumList
public void Setup(int value)
{
setup = true;
this.value = value;
angle.Value = value;
setup = false;
}
// This shows the dialog
// Returns the flags or the same flags when cancelled
public static int ShowDialog(IWin32Window owner, int value)
{
int result = value;
AngleForm f = new AngleForm();
f.Setup(value);
if(f.ShowDialog(owner) == DialogResult.OK) result = f.Value;
f.Dispose();
return result;
}
#endregion
}
}

View file

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="angle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cancel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="apply.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

Binary file not shown.