Example #1
0
 public ExtCitizen(uint citizenId)
 {
     this.citizenId    = citizenId;
     transportMode     = ExtTransportMode.None;
     lastTransportMode = ExtTransportMode.None;
     lastLocation      = Citizen.Location.Moving;
 }
 internal ExtCitizen(uint citizenId)
 {
     this.citizenId    = citizenId;
     transportMode     = ExtTransportMode.None;
     lastTransportMode = ExtTransportMode.None;
     lastLocation      = Citizen.Location.Moving;
     ResetLastLocation();
 }
        internal void Reset()
        {
#if DEBUG
            bool citDebug  = GlobalConfig.Instance.Debug.CitizenId == 0 || GlobalConfig.Instance.Debug.CitizenId == citizenId;
            bool debug     = GlobalConfig.Instance.Debug.Switches[2] && citDebug;
            bool fineDebug = GlobalConfig.Instance.Debug.Switches[4] && citDebug;

            if (fineDebug)
            {
                Log.Warning($"ExtCitizen.Reset({citizenId}): Resetting ext. citizen {citizenId}");
            }
#endif
            transportMode     = ExtTransportMode.None;
            lastTransportMode = ExtTransportMode.None;
            ResetLastLocation();
        }