Browse Source

Clean up usings and limit InspectorAttribute to fields

Matt Benic 9 years ago
parent
commit
08723a9bc9

+ 0 - 4
Script/AtomicNET/AtomicNET/Application/NETAtomicPlayer.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Reflection;
-
-
 namespace AtomicEngine
 {
     public partial class NETAtomicPlayer : PlayerApp

+ 0 - 3
Script/AtomicNET/AtomicNET/Application/NETIPCPlayerApp.cs

@@ -1,6 +1,3 @@
-using System;
-using System.Reflection;
-
 namespace AtomicEngine
 {
     public partial class NETIPCPlayerApp : IPCPlayerApp

+ 0 - 4
Script/AtomicNET/AtomicNET/Application/NETServiceApplication.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-
 namespace AtomicEngine
 {
 

+ 0 - 4
Script/AtomicNET/AtomicNET/Core/Constants.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-
 namespace AtomicEngine
 {
 

+ 0 - 1
Script/AtomicNET/AtomicNET/Core/RefCounted.cs

@@ -1,5 +1,4 @@
 using System;
-using System.Collections.Generic;
 using System.Runtime.InteropServices;
 
 namespace AtomicEngine

+ 0 - 5
Script/AtomicNET/AtomicNET/Graphics/Viewport.cs

@@ -1,8 +1,3 @@
-
-
-using System;
-using System.Runtime.InteropServices;
-
 namespace AtomicEngine
 {
     public partial class Viewport : AObject

+ 0 - 1
Script/AtomicNET/AtomicNET/IPC/IPC.cs

@@ -1,5 +1,4 @@
 using System;
-using System.Collections.Generic;
 using System.Runtime.InteropServices;
 
 namespace AtomicEngine

+ 0 - 1
Script/AtomicNET/AtomicNET/Math/IntRect.cs

@@ -1,4 +1,3 @@
-using System;
 using System.Runtime.InteropServices;
 
 namespace AtomicEngine

+ 0 - 2
Script/AtomicNET/AtomicNET/Math/MathHelper.cs

@@ -9,8 +9,6 @@
 #endregion
 
 using System;
-using System.Collections.Generic;
-using System.Text;
 
 namespace AtomicEngine
 {

+ 0 - 1
Script/AtomicNET/AtomicNET/Math/Rect.cs

@@ -1,4 +1,3 @@
-using System;
 using System.Runtime.InteropServices;
 
 namespace AtomicEngine

+ 0 - 4
Script/AtomicNET/AtomicNET/Resource/ResourceCache.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-
 namespace AtomicEngine
 {
 

+ 0 - 4
Script/AtomicNET/AtomicNET/Scene/CSComponent.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-
 namespace AtomicEngine
 {
 

+ 2 - 3
Script/AtomicNET/AtomicNET/Scene/InspectorAttribute.cs

@@ -1,17 +1,16 @@
 using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
 
 namespace AtomicEngine
 {
 
+    [AttributeUsage(AttributeTargets.Field)]
     public class InspectorAttribute : Attribute
     {
         public InspectorAttribute(string DefaultValue = "")
         {
         }
 
-        public string DefaultValue;
+        public readonly string DefaultValue;
     }
 
 }

+ 0 - 1
Script/AtomicNET/AtomicNET/Script/ScriptVariantMap.cs

@@ -1,7 +1,6 @@
 
 
 using System;
-using System.Collections.Generic;
 using System.Runtime.InteropServices;
 
 namespace AtomicEngine

+ 1 - 1
Script/AtomicNET/ComponentTest/TestComponent.cs

@@ -40,7 +40,7 @@ namespace ComponentTest
         [Inspector("Textures/chest.png")]
         public Sprite2D MySprite2DValue;
 
-        [Inspector(DefaultValue = "Textures/chest.png")]
+        [Inspector(DefaultValue : "Textures/chest.png")]
         public Sprite2D MyOtherSprite2DValue;
     }