Switch root namespace to "RobloxFiles"
In case there are any future libraries written for Roblox in C#, I want to avoid running into any namespace collisions. Its best to keep everything pertaining to this project nested in its own unique namespace.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class AxesToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class BinaryStringToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class BoolToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class BrickColorToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class CFrameToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class Color3Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class Color3uint8Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class ColorSequenceToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class ContentToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class DoubleToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class EnumToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class FacesToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class FloatToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class IntToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class Int64Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class NumberRangeToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class NumberSequenceToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class PhysicalPropertiesToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class RayToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class RectToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class RefToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class StringToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class UDimToken : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class UDim2Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class Vector2Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Xml;
|
||||
using Roblox.DataTypes;
|
||||
using RobloxFiles.DataTypes;
|
||||
|
||||
namespace Roblox.XmlFormat.PropertyTokens
|
||||
namespace RobloxFiles.XmlFormat.PropertyTokens
|
||||
{
|
||||
public class Vector3Token : IXmlPropertyToken
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat
|
||||
namespace RobloxFiles.XmlFormat
|
||||
{
|
||||
static class XmlDataReader
|
||||
{
|
||||
@ -51,12 +51,13 @@ namespace Roblox.XmlFormat
|
||||
|
||||
Instance inst = new Instance(classToken.InnerText);
|
||||
|
||||
// The 'reference' attribute is optional, but should be defined if a Ref property needs to link to this Instance.
|
||||
// The 'referent' attribute is optional, but should be defined if a Ref property needs to link to this Instance.
|
||||
XmlNode refToken = instNode.Attributes.GetNamedItem("referent");
|
||||
|
||||
if (refToken != null && instances != null)
|
||||
{
|
||||
string refId = refToken.InnerText;
|
||||
|
||||
if (instances.ContainsKey(refId))
|
||||
throw new Exception("XmlDataReader.ReadItem: Got an Item with a duplicate 'referent' attribute!");
|
||||
|
||||
|
@ -4,7 +4,7 @@ using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat
|
||||
namespace RobloxFiles.XmlFormat
|
||||
{
|
||||
public interface IXmlPropertyToken
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace Roblox.XmlFormat
|
||||
namespace RobloxFiles.XmlFormat
|
||||
{
|
||||
public class XmlRobloxFile : IRobloxFile
|
||||
{
|
||||
|
Reference in New Issue
Block a user