Skip to content

Commit 791112f

Browse files
committedApr 15, 2019
Added namespaces
1 parent bf909a2 commit 791112f

File tree

166 files changed

+2979
-2481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+2979
-2481
lines changed
 

‎Assets/SO Architecture/Collections/BaseCollection.cs

+24-21
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,34 @@
33
using UnityEngine;
44
using Type = System.Type;
55

6-
public abstract class BaseCollection : SOArchitectureBaseObject, IEnumerable
6+
namespace ScriptableObjectArchitecture
77
{
8-
public object this[int index]
8+
public abstract class BaseCollection : SOArchitectureBaseObject, IEnumerable
99
{
10-
get
10+
public object this[int index]
1111
{
12-
return List[index];
12+
get
13+
{
14+
return List[index];
15+
}
16+
set
17+
{
18+
List[index] = value;
19+
}
1320
}
14-
set
15-
{
16-
List[index] = value;
17-
}
18-
}
1921

20-
public int Count { get { return List.Count; } }
22+
public int Count { get { return List.Count; } }
2123

22-
public abstract IList List { get; }
23-
public abstract Type Type { get; }
24-
25-
IEnumerator IEnumerable.GetEnumerator()
26-
{
27-
return List.GetEnumerator();
28-
}
29-
public bool Contains(object obj)
30-
{
31-
return List.Contains(obj);
32-
}
24+
public abstract IList List { get; }
25+
public abstract Type Type { get; }
26+
27+
IEnumerator IEnumerable.GetEnumerator()
28+
{
29+
return List.GetEnumerator();
30+
}
31+
public bool Contains(object obj)
32+
{
33+
return List.Contains(obj);
34+
}
35+
}
3336
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
using UnityEngine;
22

3-
[CreateAssetMenu(
4-
fileName = "BoolCollection.asset",
5-
menuName = SOArchitecture_Utility.COLLECTION_SUBMENU + "bool",
6-
order = SOArchitecture_Utility.ASSET_MENU_ORDER_COLLECTIONS + 5)]
7-
public class BoolCollection : Collection<bool>
3+
namespace ScriptableObjectArchitecture
84
{
5+
[CreateAssetMenu(
6+
fileName = "BoolCollection.asset",
7+
menuName = SOArchitecture_Utility.COLLECTION_SUBMENU + "bool",
8+
order = SOArchitecture_Utility.ASSET_MENU_ORDER_COLLECTIONS + 5)]
9+
public class BoolCollection : Collection<bool>
10+
{
11+
}
912
}

0 commit comments

Comments
 (0)