-
Notifications
You must be signed in to change notification settings - Fork 89
Api update #1577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api update #1577
Changes from 6 commits
39cda82
5133f5e
0e940ec
551fe2e
c53f47b
8082ba2
e85a3ac
ea6b25e
280f971
2790471
ad1c5ed
cd1f632
009bb22
8f043ac
9c45c7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| namespace TrafficManager.UI { | ||
| using TrafficManager.API.UI; | ||
| using TrafficManager.UI.Textures; | ||
|
|
||
| public class UIFactory : IUIFactory { | ||
| public static IUIFactory Instance = new UIFactory(); | ||
|
|
||
| public ITheme ActiveTheme => RoadSignThemeManager.ActiveTheme; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| namespace TrafficManager.API.Traffic.Enums { | ||
| public enum JunctionRestrictionRules { | ||
Elesbaan70 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Uturn = 1 << 0, | ||
| NearTurnOnRed = 1 << 1, | ||
| FarTurnOnRed = 1 << 2, | ||
| ForwardLaneChange = 1 << 3, | ||
| EnterWhenBlocked = 1 << 4, | ||
| AllowPedestrianCrossing = 1 << 5, | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace TrafficManager.API.Traffic.Enums { | ||
| public enum TrafficLightType { | ||
|
||
| None, | ||
| Vanilla, | ||
| Manual, | ||
| Paused, | ||
| TimedScript, | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| namespace TrafficManager.API.UI { | ||
| using TrafficManager.API.Traffic.Enums; | ||
| using UnityEngine; | ||
|
|
||
| /// <summary> | ||
| /// gets the texture for overlay sprite for each traffic rule according to the current theme. | ||
| /// </summary> | ||
| public interface ITheme { | ||
| Texture2D JunctionRestriction(JunctionRestrictionRules rule, bool allowed); | ||
|
|
||
| Texture2D Parking(bool allowed); | ||
|
|
||
| Texture2D Priority(PriorityType p); | ||
|
|
||
| Texture2D VehicleRestriction(ExtVehicleType type, bool allow); | ||
|
|
||
| Texture2D TrafficLights(TrafficLightType type); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace TrafficManager.API.UI { | ||
|
|
||
| /// <summary> | ||
| /// gets the texture for overlay sprite for each traffic rule according to the current theme. | ||
| /// </summary> | ||
| public interface IUIFactory { | ||
| ITheme ActiveTheme { get; } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.