public static void Clear() { CelStack.Clear(); }
/// <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); }
public static void Push(Reference reference) { CelStack.Push(new CelesteObject(reference)); }
/// <summary> /// Pushes an already created Celeste object onto the stack /// </summary> /// <param name="celObject"></param> public static void Push(CelesteObject celObject) { CelStack.Push(celObject); }
/// <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)); }