Пример #1
0
 public static void Clear()
 {
     CelStack.Clear();
 }
Пример #2
0
 /// <summary>
 /// Pops an object from the top of our stack
 /// </summary>
 public static CelesteObject Pop()
 {
     Debug.Assert(CelStack.Count > 0);
     return(CelStack.Pop() as CelesteObject);
 }
Пример #3
0
 public static void Push(Reference reference)
 {
     CelStack.Push(new CelesteObject(reference));
 }
Пример #4
0
 /// <summary>
 /// Pushes an already created Celeste object onto the stack
 /// </summary>
 /// <param name="celObject"></param>
 public static void Push(CelesteObject celObject)
 {
     CelStack.Push(celObject);
 }
Пример #5
0
 /// <summary>
 /// Pushes a generic object onto our stack.
 /// Should not be used for lists/arrays etc.
 /// Use this if you do not care about referencing (e.g. with adding two hardcoded values
 /// </summary>
 /// <param name="celObject"></param>
 public static void Push(object value)
 {
     CelStack.Push(new CelesteObject(value));
 }