public static void Play(TSound sound) { string path = null; switch (sound) { case TSound.Burning: path = "burn.wav"; break; case TSound.Stepping: path = "move.wav"; break; case TSound.Turning: path = "turn.wav"; break; } if (!File.Exists(path)) { return; } Player.SoundLocation = path; Player.Play(); }
public static void Play(TSound sound) { switch (sound) { case TSound.Burning: Player.SoundLocation = "burn.wav"; break; case TSound.Stepping: Player.SoundLocation = "move.wav"; break; case TSound.Turning: Player.SoundLocation = "turn.wav"; break; } Player.Play(); }
internal UserConfig() { UserNick = string.Empty; UserPassword = string.Empty; UserKey = string.Empty; EncryptedUserPassword = string.Empty; UserPasswordFlash = string.Empty; EncryptedUserPasswordFlash = string.Empty; ConfigLastSaved = DateTime.Now.Ticks; UserAutoLogon = ConstUserAutoLogonDefault; DoPromptExit = ConstDoPromptExitDefault; DoGuamod = ConstDoGuamodDefault; ConfigPassword = string.Empty; ConfigHash = string.Empty; DoProxy = ConstDoProxyDefault; ProxyAddress = string.Empty; ProxyUserName = string.Empty; ProxyPassword = string.Empty; MapShowExtend = ConstMapShowExtendDefault; MapBigWidth = ConstMapBigWidthDedault; MapBigHeight = ConstMapBigHeightDedault; MapBigScale = ConstMapBigScaleDedault; MapBigTransparency = ConstMapBigTransparencyDedault; MapShowBackColorWhite = ConstMapShowBackColorWhiteDedault; MapShowMiniMap = ConstMapShowMiniMapDedault; MapMiniWidth = ConstMapMiniWidthDedault; MapMiniHeight = ConstMapMiniHeightDedault; MapMiniScale = ConstMapMiniScaleDedault; MapLocation = string.Empty; MapDrawRegion = ConstMapDrawRegionDefault; CureNV = new[] { ConstCureNVOneDefault, ConstCureNVTwoDefault, ConstCureNVThreeDefault, ConstCureNVFourDefault }; CureAsk = new[] { ConstCureAskOneDefault, ConstCureAskTwoDefault, ConstCureAskThreeDefault, ConstCureAskFourDefault }; CureAdv = ConstCureAdvDefault; CureAfter = ConstCureAfterDefault; CureBoi = ConstCureBoiDefault; CureEnabled = new[] { ConstCureEnabledOneDefault, ConstCureEnabledTwoDefault, ConstCureEnabledThreeDefault, ConstCureEnabledFourDefault }; CureDisabledLowLevels = ConstCureDisabledLowLevelsDefault; DoAutoAnswer = ConstDoAutoAnswerDefault; AutoAnswer = ConstAutoAnswerDefault; FishTiedHigh = ConstFishTiedHighDefault; FishTiedZero = ConstFishTiedZeroDefault; FishStopOverWeight = ConstFishStopOverWeightDefault; FishAutoWear = ConstFishAutoWearDefault; FishHandOne = ConstFishHandOneDefault; FishHandTwo = string.Empty; FishEnabledPrims = ConstFishEnabledPrimsDefault; FishUm = ConstFishUmDefault; FishMaxLevelBots = ConstFishMaxLevelBotsDefault; FishChatReport = ConstFishChatReportDefault; FishChatReportColor = ConstFishChatReportColorDefault; FishAuto = ConstFishAutoDefault; RazdChatReport = ConstRazdChatReportDefault; ChatKeepGame = ConstChatKeepGameDefault; ChatKeepMoving = ConstChatKeepMovingDefault; ChatKeepLog = ConstChatKeepLogDefault; ChatSizeLog = ConstChatSizeLogDefault; ChatHeight = ConstChatHeightDefault; ChatDelay = ConstChatDelayDefault; ChatMode = ConstChatModeDefault; LightForum = ConstLightForumDefault; TorgActive = ConstTorgActiveDefault; TorgTabl = ConstTorgTablDefault; TorgMessageTooExp = ConstTorgMessageTooExpDefault; TorgMessageAdv = ConstTorgMessageMsgAdvDefault; TorgAdvTime = AppConsts.TorgAdvTimeDefault; TorgMessageThanks = ConstTorgMessageThanksDefault; TorgMessageNoMoney = ConstTorgMessageNoMoneyDefault; TorgMessageLess90 = ConstTorgMessageLess90Default; TorgSliv = ConstTorgSlivDefault; TorgMinLevel = ConstTorgMinLevelDefault; TorgEx = ConstTorgExDefault; TorgDeny = ConstTorgDenyDefault; Window = new TWindow { State = FormWindowState.Normal, Left = 0, Top = 0, Width = 0, Height = 0 }; Stat = new TypeStat { LastReset = DateTime.Now.Ticks, LastUpdateDay = DateTime.Now.DayOfYear, Drop = string.Empty, ItemDrop = new List <TypeItemDrop>(), SavedTraffic = 0, Show = 0, Traffic = 0, XP = 0, NV = 0, FishNV = 0 }; Splitter = new TSplitter { Collapsed = false, Width = 200 }; Pers = new TPers { Guamod = true, IntHP = 2000, IntMA = 9000, Ready = 0, LogReady = string.Empty }; Navigator = new TNavigator { AllowTeleports = true }; AutoAdv = new TAutoAdv { Sec = 600, Phraz = "Ойож фивж трансой" + Environment.NewLine + "Иоф унита крамберри тро фифс" + Environment.NewLine + "Про гинт гита" + Environment.NewLine + "Ю кисон ноер!" + Environment.NewLine + "; Эта закомментированная строчка рекламы будет пропускаться" }; DoPromptExit = true; DoTexLog = true; Notepad = string.Empty; Tabs = new string[0]; DoTray = true; ShowTrayBaloons = true; FavLocations = new string[0]; ServDiff = new TimeSpan(0); Sound = new TSound { Enabled = true, DoPlayAlarm = true, DoPlayAttack = true, DoPlayDigits = true, DoPlayRefresh = true, DoPlaySndMsg = true, DoPlayTimer = true }; DoInvPack = true; DoInvPackDolg = true; DoInvSort = true; DoShowFastAttack = false; DoShowFastAttackBlood = true; DoShowFastAttackUltimate = true; DoShowFastAttackClosedUltimate = true; DoShowFastAttackClosed = true; DoShowFastAttackFist = false; DoShowFastAttackClosedFist = true; DoShowFastAttackOpenNevid = true; DoShowFastAttackPoison = true; DoShowFastAttackStrong = true; DoShowFastAttackNevid = true; DoShowFastAttackFog = true; DoShowFastAttackZas = true; DoShowFastAttackTotem = true; DoShowFastAttackPortal = true; DoAutoCutWriteChat = true; DoStopOnDig = true; DoAutoDrinkBlaz = false; AutoDrinkBlazTied = 84; NextCheckVersion = DateTime.MinValue; ShowOverWarning = false; Complects = string.Empty; DoRob = true; DoAutoCure = true; AutoWearComplect = string.Empty; DoContactTrace = false; DoBossTrace = true; SkinAuto = false; }