ball 项目提交
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
namespace BallKingdomCrush
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class JoastModel : BaseModel
|
||||
{
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
private Queue<JoastData> tipsDatas = new Queue<JoastData>();
|
||||
|
||||
public void AddTips(JoastData joastData)
|
||||
{
|
||||
if (tipsDatas.Count > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
tipsDatas.Enqueue(joastData);
|
||||
}
|
||||
|
||||
public JoastData GetTips()
|
||||
{
|
||||
return tipsDatas.Count > 0 ? tipsDatas.Dequeue() : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user