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:
CloneTrooper1019 2019-02-01 11:19:20 -06:00
parent 4e15b2a635
commit 795018e243
66 changed files with 134 additions and 105 deletions

View File

@ -3,7 +3,7 @@ using System.IO;
using System.Text;
using LZ4;
namespace Roblox.BinaryFormat
namespace RobloxFiles.BinaryFormat
{
public class RobloxBinaryChunk
{

View File

@ -3,7 +3,7 @@ using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace Roblox.BinaryFormat
namespace RobloxFiles.BinaryFormat
{
public class RobloxBinaryReader : BinaryReader
{

View File

@ -2,9 +2,10 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using Roblox.BinaryFormat.Chunks;
namespace Roblox.BinaryFormat
using RobloxFiles.BinaryFormat.Chunks;
namespace RobloxFiles.BinaryFormat
{
public class BinaryRobloxFile : IRobloxFile
{

View File

@ -1,4 +1,4 @@
namespace Roblox.BinaryFormat.Chunks
namespace RobloxFiles.BinaryFormat.Chunks
{
public class INST
{

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Roblox.BinaryFormat.Chunks
namespace RobloxFiles.BinaryFormat.Chunks
{
public class META
{

View File

@ -1,4 +1,4 @@
namespace Roblox.BinaryFormat.Chunks
namespace RobloxFiles.BinaryFormat.Chunks
{
public class PRNT
{

View File

@ -1,11 +1,11 @@
using System;
using System.Linq;
using Roblox.Enums;
using Roblox.DataTypes;
using Roblox.DataTypes.Utility;
using RobloxFiles.Enums;
using RobloxFiles.DataTypes;
using RobloxFiles.DataTypes.Utility;
namespace Roblox.BinaryFormat.Chunks
namespace RobloxFiles.BinaryFormat.Chunks
{
public class PROP
{

View File

@ -1,7 +1,7 @@
// This is an auto-generated list of all available enums on Roblox!
// Updated as of 0.369.1.273919
namespace Roblox.Enums
namespace RobloxFiles.Enums
{
public enum ActionType
{

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
namespace Roblox
namespace RobloxFiles
{
/// <summary>
/// Describes an object in Roblox's DataModel hierarchy.

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox
namespace RobloxFiles
{
public enum PropertyType
{

View File

@ -1,12 +1,11 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Roblox.BinaryFormat;
using Roblox.XmlFormat;
using RobloxFiles.BinaryFormat;
using RobloxFiles.XmlFormat;
namespace Roblox
namespace RobloxFiles
{
/// <summary>
/// Interface which represents a RobloxFile implementation.

View File

@ -1,7 +1,7 @@
using System;
using Roblox.Enums;
using RobloxFiles.Enums;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
[Flags]
public enum Axes

View File

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using Roblox.DataTypes.Utility;
using RobloxFiles.DataTypes.Utility;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public class BrickColor
{

View File

@ -1,7 +1,7 @@
using System;
using Roblox.DataTypes.Utility;
using RobloxFiles.DataTypes.Utility;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public class CFrame
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Color3
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct ColorSequence
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct ColorSequenceKeypoint
{

View File

@ -1,7 +1,7 @@
using System;
using Roblox.Enums;
using RobloxFiles.Enums;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
[Flags]
public enum Faces

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct NumberRange
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct NumberSequence
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct NumberSequenceKeypoint
{

View File

@ -1,7 +1,7 @@
using Roblox.Enums;
using Roblox.DataTypes.Utility;
using RobloxFiles.Enums;
using RobloxFiles.DataTypes.Utility;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct PhysicalProperties
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Ray
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Rect
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Region3
{

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Region3int16
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct UDim
{

View File

@ -1,4 +1,4 @@
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct UDim2
{

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Roblox.DataTypes;
using RobloxFiles.DataTypes;
namespace Roblox.DataTypes.Utility
namespace RobloxFiles.DataTypes.Utility
{
public static class BrickColors
{

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Roblox.Enums;
using RobloxFiles.Enums;
namespace Roblox.DataTypes.Utility
namespace RobloxFiles.DataTypes.Utility
{
public static class MaterialInfo
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes.Utility
namespace RobloxFiles.DataTypes.Utility
{
public class Quaternion
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Vector2
{

View File

@ -1,7 +1,7 @@
using System;
using Roblox.Enums;
using RobloxFiles.Enums;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Vector3
{

View File

@ -1,6 +1,6 @@
using System;
namespace Roblox.DataTypes
namespace RobloxFiles.DataTypes
{
public struct Vector3int16
{

View File

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RobloxFileFormat")]
[assembly: AssemblyTitle("RobloxFiles")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RobloxFileFormat")]
[assembly: AssemblyProduct("RobloxFiles")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -5,12 +5,27 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CF50C0E2-23A7-4DC1-B4B2-E60CDE716253}</ProjectGuid>
<OutputType>WinExe</OutputType>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Roblox</RootNamespace>
<RootNamespace>RobloxFiles</RootNamespace>
<AssemblyName>RobloxFileFormat</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -102,7 +117,7 @@
<Compile Include="XmlFormat\PropertyTokens\Int.cs" />
<Compile Include="XmlFormat\PropertyTokens\Int64.cs" />
<Compile Include="XmlFormat\PropertyTokens\NumberRange.cs" />
<Compile Include="XmlFormat\PropertyTokens\NumberSequence.cs" />
<Compile Include="XmlFormat\PropertyTokens\NumberSequence.cs" />
<Compile Include="XmlFormat\PropertyTokens\PhysicalProperties.cs" />
<Compile Include="XmlFormat\PropertyTokens\Ray.cs" />
<Compile Include="XmlFormat\PropertyTokens\Rect.cs" />
@ -116,5 +131,17 @@
<ItemGroup>
<None Include="Packages.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,9 +1,9 @@
using System.Diagnostics;
#if DEBUG
using System.Diagnostics;
namespace Roblox
namespace RobloxFiles
{
// This is a placeholder.
internal class UnitTest
{
public static void Main(string[] args)
@ -15,4 +15,5 @@ namespace Roblox
}
}
}
}
}
#endif

View File

@ -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
{

View File

@ -1,7 +1,7 @@
using System;
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class BinaryStringToken : IXmlPropertyToken
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class BoolToken : IXmlPropertyToken
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -1,7 +1,7 @@
using System;
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class ContentToken : IXmlPropertyToken
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class DoubleToken : IXmlPropertyToken
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class EnumToken : IXmlPropertyToken
{

View File

@ -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
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class FloatToken : IXmlPropertyToken
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class IntToken : IXmlPropertyToken
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class Int64Token : IXmlPropertyToken
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -1,6 +1,6 @@
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class RefToken : IXmlPropertyToken
{

View File

@ -1,7 +1,7 @@
using System.Text;
using System.Xml;
namespace Roblox.XmlFormat.PropertyTokens
namespace RobloxFiles.XmlFormat.PropertyTokens
{
public class StringToken : IXmlPropertyToken
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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!");

View File

@ -4,7 +4,7 @@ using System.ComponentModel;
using System.Linq;
using System.Xml;
namespace Roblox.XmlFormat
namespace RobloxFiles.XmlFormat
{
public interface IXmlPropertyToken
{

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Xml;
namespace Roblox.XmlFormat
namespace RobloxFiles.XmlFormat
{
public class XmlRobloxFile : IRobloxFile
{