Exemplo n.º 1
0
 public static GameSetting Instance()
 {
     lock (f00000e)
     {
         if (_Instance == null)
         {
             _Instance = new GameSetting();
             _Instance.m000001();
         }
     }
     return _Instance;
 }
Exemplo n.º 2
0
 public static void SetGameSetting(GameSetting p0, DataSet p1)
 {
     p0.SetEntryTime(DateTime.FromBinary(Convert.ToInt64(p1.Tables["GameInfo"].Rows[0]["EntryTime"])));
     p0.SetIsOpenSound(Convert.ToBoolean(p1.Tables["GameInfo"].Rows[0]["IsOpenSound"]));
     p0.SetIsShowFps(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["IsShowFps"]));
     p0.SetCommonPassword(p1.Tables["GameInfo"].Rows[0]["CommonPassword"].ToString());
     p0.SetSetupPassword(p1.Tables["GameInfo"].Rows[0]["SetupPassword"].ToString());
     p0.SetLanguage(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["Language"]));
     p0.SetCoinOutType(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["CoinOutType"]));
     p0.SetScoreCount(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["ScoreCount"]));
     p0.SetLotteryOutCount(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["LotteryOutCount"]));
     p0.SetScoreOutCount(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["ScoreOutCount"]));
     p0.SetGameLevel(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["GameLevel"]));
     p0.SetGameShootSpeedType(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["GameShootSpeedType"]));
     p0.SetRewardLightType(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["RewardLightType"]));
     p0.SetChangeSceneTime(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["ChangeSceneTime"]));
     p0.SetFCoinInCount(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["FCoinInCount"]));
     p0.SetFCoinOutCount(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["FCoinOutCount"]));
     p0.SetBVolume(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["BVolume"]));
     p0.SetGVolume(Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["GVolume"]));
     p0.OrientationArray[0] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["A"]);
     p0.OrientationArray[1] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["B"]);
     p0.OrientationArray[2] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["C"]);
     p0.OrientationArray[3] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["D"]);
     p0.OrientationArray[4] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["E"]);
     p0.OrientationArray[5] = Convert.ToInt32(p1.Tables["Orientation"].Rows[0]["F"]);
     p0.GameSiteType = Convert.ToInt32(p1.Tables["GameInfo"].Rows[0]["GameSiteType"]);
 }
Exemplo n.º 3
0
 static GameSetting()
 {
     f00000e = new object();
     _Instance = null;
     CastnetFishGameVersion = "1.03";
 }