Exemple #1
0
        /// <summary>
        /// TODO: clean this nasty mess up.
        /// </summary>
        void _addCargoToArea(object sender, ITransactionRemoveStatefulCargo tr)
        {
            IFloatyAreaObject fa = (IFloatyAreaObject)tr.RemovedCargo;

            List <IFloatyAreaObject> l = new List <IFloatyAreaObject> {
                fa
            };
            IArea a = _areaLocator.GetArea(fa.NextAreaID);

            a.AddFloatyAreaObjects(l);
            ConsoleManager.WriteLine("NPC dropped " + tr.RemovedCargo.GetType().Name, ConsoleMessageType.Notification);
        }