protected void OnTickForHymeneal(object obj) { try { _roomState = eRoomState.FREE; GSPacketIn pkg = new GSPacketIn((short)ePackageType.MARRY_CMD); pkg.WriteByte((byte)MarryCmdType.HYMENEAL_STOP); //0 SendToAll(pkg); //0 SendToAllForScene(pkg,1); SendToAll(pkg); StopTimerForHymeneal(); SendUserRemoveLate(); SendMarryRoomInfoUpdateToScenePlayers(this); } catch (Exception ex) { if (log.IsErrorEnabled) { log.Error("OnTickForHymeneal", ex); } } }
public MarryRoom(MarryRoomInfo info, IMarryProcessor processor) { this.Info = info; this._processor = processor; this._guestsList = new List <GamePlayer>(); this._count = 0; this._roomState = eRoomState.FREE; this._userForbid = new List <int>(); this._userRemoveList = new List <int>(); }
public HotSpringRoom(HotSpringRoomInfo info, IHotSpringProcessor processor) { Info = info; _processor = processor; _guestsList = new List <GamePlayer>(); _count = 0; _roomState = eRoomState.FREE; _userForbid = new List <int>(); _userRemoveList = new List <int>(); }
public void Clear() { nX = 0; nY = 0; nRoomID = 0; eState = eRoomState.None; eExistNPC = eNPC.None; eOpenDir = eDir.None; bPortal = false; }
//private bool _isHymeneal; //public bool IsHymeneal //{ // get { return _isHymeneal; } // set { _isHymeneal = value; } //} public MarryRoom(MarryRoomInfo info, IMarryProcessor processor) { Info = info; _processor = processor; _guestsList = new List<GamePlayer>(); _count = 0; //_isHymeneal = false; _roomState = eRoomState.FREE; _userForbid = new List<int>(); _userRemoveList = new List<int>(); }
//private bool _isHymeneal; //public bool IsHymeneal //{ // get { return _isHymeneal; } // set { _isHymeneal = value; } //} public MarryRoom(MarryRoomInfo info, IMarryProcessor processor) { Info = info; _processor = processor; _guestsList = new List <GamePlayer>(); _count = 0; //_isHymeneal = false; _roomState = eRoomState.FREE; _userForbid = new List <int>(); _userRemoveList = new List <int>(); }
private void InitAllFixeType(CardsInfoStruct[] info, eRoomState state) { if (state == eRoomState.FIXEDCOLOR) { return; } foreach (var item in info) { if (item != null) { eFixedType _type = (eFixedType)item.fixedType; if (_type != eFixedType.NONE && item.isChanged) { int index = MJGameModel.Inst.mnewSeatToIndex[item.seatId]; mAllPlayer[index].UpdataFixe(_type, item.seatId == MJGameModel.Inst.mMySeatId); } } } }
protected void OnTickForHymeneal(object obj) { try { this._roomState = eRoomState.FREE; GSPacketIn gSPacketIn = new GSPacketIn(249); gSPacketIn.WriteByte(9); this.SendToAll(gSPacketIn); this.StopTimerForHymeneal(); this.SendUserRemoveLate(); this.SendMarryRoomInfoUpdateToScenePlayers(this); } catch (Exception exception) { if (MarryRoom.log.IsErrorEnabled) { MarryRoom.log.Error("OnTickForHymeneal", exception); } } }
protected void OnTickForHymeneal(object obj) { try { _roomState = eRoomState.FREE; GSPacketIn pkg = new GSPacketIn((short)ePackageType.MARRY_CMD); pkg.WriteByte((byte)MarryCmdType.HYMENEAL_STOP); //0 SendToAll(pkg); //0 SendToAllForScene(pkg,1); SendToAll(pkg); StopTimerForHymeneal(); SendUserRemoveLate(); SendMarryRoomInfoUpdateToScenePlayers(this); } catch(Exception ex) { if(log.IsErrorEnabled) { log.Error("OnTickForHymeneal",ex); } } }