-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change settings system namespaces, class names
- Loading branch information
Showing
27 changed files
with
705 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
using System; | ||
using UnityEngine; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Assets.MapzenGo.Models.Enums; | ||
using MapzenGo.Models.Enums; | ||
using SerializableCollections; | ||
using UnityEngine; | ||
|
||
[System.Serializable] | ||
public abstract class SettingsLayers : ScriptableObject | ||
namespace MapzenGo.Models.Settings.Base | ||
{ | ||
public virtual T GetSettingsFor<T>(Enum type) where T : BaseSetting | ||
[System.Serializable] | ||
public abstract class SettingsLayers : ScriptableObject | ||
{ | ||
return null; | ||
} | ||
public virtual T GetSettingsFor<T>(Enum type) where T : BaseSetting | ||
{ | ||
return null; | ||
} | ||
|
||
public virtual bool HasSettingsFor(Enum type) | ||
{ | ||
return false; | ||
} | ||
|
||
public static T GetScriptableObject<T>() where T : SettingsLayers | ||
{ | ||
return Resources.Load<T>("Settings/" + (typeof (T).ToString())); | ||
} | ||
|
||
} | ||
|
||
public class SettingsLayersDictionary : SerializableDictionary<Enum, BaseSetting> { }; | ||
public virtual bool HasSettingsFor(Enum type) | ||
{ | ||
return false; | ||
} | ||
|
||
public static T GetScriptableObject<T>() where T : SettingsLayers | ||
{ | ||
return Resources.Load<T>("Settings/" + (typeof(T).ToString())); | ||
} | ||
|
||
} | ||
|
||
public class SettingsLayersDictionary : SerializableDictionary<Enum, BaseSetting> { }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.