Skip to content

Commit bb8be17

Browse files
author
Cory Leach
committed
Adding more methods to IPanelStackSystem interface
1 parent 135f923 commit bb8be17

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

Runtime/PanelSystem/IPanelStackSystem.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using System.Threading.Tasks;
23

34
namespace Gameframe.GUI.PanelSystem
45
{
@@ -7,6 +8,24 @@ public interface IPanelStackSystem : IEnumerable<IPanelViewController>, IPanelSy
78
int Count { get; }
89
IPanelViewController this[int index] { get; }
910
void Push(IPanelViewController controller);
11+
void Push(params IPanelViewController[] controllers);
12+
Task PushAsync(IPanelViewController controller);
1013
void Pop();
14+
Task PopAsync();
15+
void Pop(int count);
16+
Task PopAsync(int count);
17+
void PopToIndex(int index);
18+
Task PopToIndexAsync(int index);
19+
void PopAndPush(int popCount, params IPanelViewController[] controllers);
20+
void PopAndPush(int popCount, IPanelViewController controller);
21+
Task PopAndPushAsync(int popCount, IPanelViewController controller);
22+
Task PopAndPushAsync(int popCount, params IPanelViewController[] controllers);
23+
Task PushAsync(params IPanelViewController[] controllers);
24+
Task ClearAndPushAsync(params IPanelViewController[] controllers);
25+
Task ClearAndPushAsync(IPanelViewController viewController);
26+
void ClearAndPush(params IPanelViewController[] controllers);
27+
void ClearAndPush(IPanelViewController viewController);
28+
Task ClearAsync();
29+
void Clear();
1130
}
1231
}

Tests/Editor/Fakes.cs

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,103 @@ public void Push(IPanelViewController panelController)
8787
controllerList.Add(panelController);
8888
}
8989

90+
public void Push(params IPanelViewController[] controllers)
91+
{
92+
throw new System.NotImplementedException();
93+
}
94+
95+
public Task PushAsync(IPanelViewController controller)
96+
{
97+
throw new System.NotImplementedException();
98+
}
99+
90100
public void Pop()
91101
{
92102
var controller = controllerList[controllerList.Count - 1];
93103
controllerList.RemoveAt(controllerList.Count-1);
94104
//return controller;
95105
}
96106

107+
public Task PopAsync()
108+
{
109+
throw new System.NotImplementedException();
110+
}
111+
112+
public void Pop(int count)
113+
{
114+
throw new System.NotImplementedException();
115+
}
116+
117+
public Task PopAsync(int count)
118+
{
119+
throw new System.NotImplementedException();
120+
}
121+
122+
public void PopToIndex(int index)
123+
{
124+
throw new System.NotImplementedException();
125+
}
126+
127+
public Task PopToIndexAsync(int index)
128+
{
129+
throw new System.NotImplementedException();
130+
}
131+
132+
public void PopAndPush(int popCount, params IPanelViewController[] controllers)
133+
{
134+
throw new System.NotImplementedException();
135+
}
136+
137+
public void PopAndPush(int popCount, IPanelViewController controller)
138+
{
139+
throw new System.NotImplementedException();
140+
}
141+
142+
public Task PopAndPushAsync(int popCount, IPanelViewController controller)
143+
{
144+
throw new System.NotImplementedException();
145+
}
146+
147+
public Task PopAndPushAsync(int popCount, params IPanelViewController[] controllers)
148+
{
149+
throw new System.NotImplementedException();
150+
}
151+
152+
public Task PushAsync(params IPanelViewController[] controllers)
153+
{
154+
throw new System.NotImplementedException();
155+
}
156+
157+
public Task ClearAndPushAsync(params IPanelViewController[] controllers)
158+
{
159+
throw new System.NotImplementedException();
160+
}
161+
162+
public Task ClearAndPushAsync(IPanelViewController viewController)
163+
{
164+
throw new System.NotImplementedException();
165+
}
166+
167+
public void ClearAndPush(params IPanelViewController[] controllers)
168+
{
169+
throw new System.NotImplementedException();
170+
}
171+
172+
public void ClearAndPush(IPanelViewController viewController)
173+
{
174+
throw new System.NotImplementedException();
175+
}
176+
177+
public Task ClearAsync()
178+
{
179+
throw new System.NotImplementedException();
180+
}
181+
182+
public void Clear()
183+
{
184+
throw new System.NotImplementedException();
185+
}
186+
97187
public IEnumerator<IPanelViewController> GetEnumerator()
98188
{
99189
return controllerList.GetEnumerator();

0 commit comments

Comments
 (0)