using System.Collections.Generic; namespace OpenRa.Game { class LocalOrderSource : IOrderSource { Dictionary> orders = new Dictionary>(); public List OrdersForFrame(int currentFrame) { // TODO: prune `orders` based on currentFrame. if (!orders.ContainsKey(currentFrame)) return new List(); return orders[currentFrame]; } public void SendLocalOrders(int localFrame, List localOrders) { if (localFrame == 0) return; orders[localFrame] = localOrders; } public bool IsReadyForFrame(int frameNumber) { return true; } } }