Exemplo n.º 1
0
        private String SmartObjectData(SmartObject smo)
        {
            StringBuilder text = new StringBuilder();

            if (smo == null)
            {
                return(text.ToString());
            }
            text.Append("\n\n-----SmartObject Data-----\n");
            text.Append("\ncurrentEnterLockDuration: ").Append(smo.currentEnterLockDuration);
            text.Append("\nDebugName: ").Append(smo.DebugName);
            text.Append("\nDisplayCategory: ").Append(smo.DisplayCategory);
            text.Append("\nFunctioningForTasks: ").Append(smo.FunctioningForTasks);
            text.Append("\nIdleTime: ").Append(smo.IdleTime);
            text.Append("\niprefab: ").Append(smo.iprefab);
            text.Append(IPrefabData(smo.iprefab));
            text.Append("\nLevel: ").Append(smo.Level);
            text.Append("\nmaxStaffAssigned: ").Append(smo.maxStaffAssigned);
            text.Append("\nnCurrent: ").Append(smo.nCurrent);
            text.Append("\nPosition: ").Append(smo.Position);
            text.Append("\nprefab: ").Append(smo.prefab);
            text.Append("\nqueueTypeMask: ").Append(smo.queueTypeMask);
            text.Append("\nrequiresStaffType: ").Append(smo.requiresStaffType);
            text.Append("\nreservedTasks: ").Append(smo.reservedTasks);
            text.Append("\nRunningTasks: ").Append(smo.RunningTasks);
            text.Append("\nsavedStaffPerSchedule: ").Append(smo.savedStaffPerSchedule);
            text.Append("\nScheduleAssigned: ").Append(smo.ScheduleAssigned);
            text.Append("\nScheduleWorkType: ").Append(smo.ScheduleWorkType);
            text.Append("\nSector: -----\n").Append(smo.Sector).Append("\n-----");
            text.Append("\nstaffHere: ").Append(smo.staffHere);
            text.Append("\nSubSector: ").Append(smo.SubSector);
            text.Append("\nVisualCenter");
            text.Append("\n\tx: : ").Append(smo.VisualCenter.x);
            text.Append("\n\ty: : ").Append(smo.VisualCenter.y);
            text.Append("\nacceptsQueueGeometry: ").Append(smo.acceptsQueueGeometry);
            text.Append("\nconcurrency: ").Append(smo.concurrency);
            text.Append("\nconnection: ").Append(smo.connection);
            text.Append("\nDequeuedOTW: ").Append(smo.DequeuedOTW);
            text.Append("\nisBeingRepaired: ").Append(smo.isBeingRepaired);
            text.Append("\nmanager: -----\n").Append(smo.manager.Inspect(true)).Append("\n-----");
            text.Append("\nmanager.parent.DebugName: ").Append(smo.manager.parent.DebugName);
            text.Append("\nmanager.parent.GameObject: ").Append(GameObjectData(smo.manager.parent.gameObject));
            text.Append("\nmanager.queues[0].obj.gameObject: ").Append(GameObjectData(smo.manager.queues[0].obj.gameObject));
            text.Append("\nmanager.queues[0].obj.gameObject.gameObject: ").Append(GameObjectData(smo.manager.queues[0].obj.gameObject.gameObject));
            text.Append("\nplaceableObject: ").Append(smo.placeableObject);
            text.Append("\nqueueEnabled: ").Append(smo.queueEnabled);
            text.Append("\nstaffLimit: ").Append(smo.staffLimit);
            text.Append("\nTimingDisplayCategory: ").Append(smo.TimingDisplayCategory);
            text.Append("\nvendingMachine: ").Append(smo.vendingMachine);
            text.Append("\nvendorObject: ").Append(smo.vendorObject);
            text.Append("\nworkSortOrder: ").Append(smo.workSortOrder);
            text.Append("\nGetZone: ").Append(smo.GetZone());
            text.Append("\nInSecureArea: ").Append(smo.InSecureArea());
            text.Append("\nInspect:-----\n ").Append(smo.Inspect()).Append("\n-----");
            text.Append("\nIsStaffed: ").Append(smo.IsStaffed());
            text.Append("\nNumberOfStaffServing: ").Append(smo.NumberOfStaffServing());

            return(text.ToString());
        }