public static string GetCurrentStackLiteLast() { var st = new NStackTrace(1); var sb = new StringBuilder(); for (int stack = st.FrameCount - 1; stack >= 0; stack--) { var sf = st.GetFrame(stack); if (sf == null) { continue; } var m = sf.methodBase; if (m == null) { continue; } sb.Append(m.DeclaringType.Name); sb.Append("::"); sb.Append(m.Name); sb.Append('\n'); } return(sb.ToString()); }
public NewBimDesc(SimDescriptionCore sdCore) { if (dontCall) { return; } var _this = (SimDescription)(object)this; if (!NStackTrace.IsCallingMyMethedLite("CreateSimHead", true, 3)) { Create.AddNiecSimDescription(_this); NiecException.NewSendTextExceptionToDebugger(); } _this.mSkinToneKey = default(ResourceKey); _this.mSecondaryNormalMapWeights = new float[2]; _this.mFlags = SimDescription.FlagField.Marryable | SimDescription.FlagField.CanBeKilledOnJob | SimDescription.FlagField.ShowSocialsOnSim | SimDescription.FlagField.Contactable | SimDescription.FlagField.CanStartFires | SimDescription.FlagField.WasCasCreated; _this.mAlmaMaterName = string.Empty; _this.UserDaysInCurrentAge = int.MaxValue; _this.CharismaStats = default(SimDescription.Charisma); _this.mShapeDeltaMultiplier = 1f; _this.mPreferredVehicleGuid = ObjectGuid.InvalidObjectGuid; _this.mPreferredBoatGuid = ObjectGuid.InvalidObjectGuid; _this.LastMakeoverReceivedUserDirected = SimClock.CurrentTime() - new DateAndTime(4, DaysOfTheWeek.Sunday, 0, 0, 0); _this.mStoredSlot = PASSPORTSLOT.PASSPORTSLOT_NUM; _this.mReturnSimAlarm = AlarmHandle.kInvalidHandle; _this.mIsValidDescription = true; if (SimDescription.sLoadedSimDescriptions != null) { SimDescription.sLoadedSimDescriptions.Add(_this); } try { _this.TraitManager = new TraitManager(sdCore.TraitManager); _this.TraitManager.SetSimDescription(_this); _this.CopyAllOutfits(sdCore); _this.CopyCoreFileds(sdCore); SimOutfit outfit = sdCore.GetOutfit(OutfitCategories.Everyday, 0); _this.Init(outfit); _this.CopyPetFields(sdCore); } catch (Exception) { } }