Пример #1
0
        public ICollection <IVehicle> GetAllEntities()
        {
            var mockVehicle = new MockVehicle()
            {
                Position = new Position(1, 1, 1)
            };
            var vehicles = new List <IVehicle> {
                mockVehicle
            };

            return(vehicles);
        }
Пример #2
0
        public KeyValuePair <IntPtr, IVehicle>[] GetEntitiesArray()
        {
            var mockVehicle = new MockVehicle()
            {
                Position = new Position(1, 1, 1)
            };
            var vehicles = new List <IVehicle> {
                mockVehicle
            };
            var arr = new KeyValuePair <IntPtr, IVehicle> [vehicles.Count];
            var i   = 0;

            foreach (var entity in vehicles)
            {
                arr[i++] = new KeyValuePair <IntPtr, IVehicle>(IntPtr.Zero, entity);
            }

            return(arr);
        }