public static List <dynamic> GetRegisteredCalloutNames()
        {
            List <dynamic> RegisteredCalloutNames = new List <dynamic>();

            Game.LogTrivial("Adding callout names! ");
            foreach (Callout callout in ScriptComponent.GetAllByType <Callout>())
            {
                Game.LogTrivial("Adding callout name: " + callout.ScriptInfo.Name);
                RegisteredCalloutNames.Add(callout.ScriptInfo.Name);
            }
            return(RegisteredCalloutNames);
        }
Example #2
0
        public static void checkisCalloutRunning()
        {
            if (PlayerAuthenticate.isLogged)
            {
                checkIfCalloutEnded();

                foreach (Callout callout in ScriptComponent.GetAllByType <Callout>())
                {
                    if (callout != null && callout.AcceptanceState == CalloutAcceptanceState.Running)
                    {
                        if (currentCallout == null)
                        {
                            currentCallout = callout;
                            calloutTime    = new Stopwatch();
                            calloutTime.Start();
                            LiveTicker.AddTicker("<br />Call: <font color=\"LightCoral\">" + getCalloutMessage(callout.CalloutMessage) + "</font><br />En Route to <font color=\"Orange\">" + Functions.GetZoneAtPosition(callout.CalloutPosition).RealAreaName + "</font>");
                        }
                    }
                }
            }
        }