protected override YxCreateRoomInfo InitCreateGameData(ISFSObject gameInfo) { JhRuleInfo info = new JhRuleInfo { CurRound = gameInfo.ContainsKey("round") ? gameInfo.GetInt("round") : -1, MaxRound = gameInfo.ContainsKey("maxRound") ? gameInfo.GetInt("maxRound") : -1, RoomId = gameInfo.GetInt(RequestKey.KeyRoomId), RuleInfo = gameInfo.ContainsKey("rule") ? gameInfo.GetUtfString("rule") : "" }; info.SetCargs(gameInfo.GetSFSObject("cargs2")); return(info); }
public override void InitCfg(ISFSObject cargs2) { base.InitCfg(cargs2); // SingleBet = AnteRate[0]; var time = cargs2.ContainsKey("-tptout") ? cargs2.GetUtfString("-tptout") : "300"; HupUp.HupTime = int.Parse(time); if (IsCreatRoom) { IsReadyCd = cargs2.ContainsKey("-nmno") && Int32.Parse(cargs2.GetUtfString("-nmno")) > 0; CoustemTime = cargs2.ContainsKey("-ctime") ? Int32.Parse(cargs2.GetUtfString("-ctime")) : -1; JhRuleInfo info = (JhRuleInfo)CreateRoomInfo; EventObj.SendEvent("RuleInfoEvent", "RuleInfo", info.Cargs); } }