public abstract SetString ( int nRow, int nCol, string value ) : bool | ||
nRow | int | |
nCol | int | |
value | string | |
Результат | bool |
public override bool SetRecordString(string strRecordName, int nRow, int nCol, string strValue) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { record.SetString(nRow, nCol, strValue); return(true); } return(false); }
private void EGMI_ACK_RECORD_STRING(NFMsg.MsgBase xMsg) { NFMsg.ObjectRecordString xData = new NFMsg.ObjectRecordString(); xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ObjectRecordString)) as NFMsg.ObjectRecordString; NFIObject go = NFCKernelModule.Instance.GetObject(NFNetController.PBToNF(xData.player_id)); NFIRecordManager recordManager = go.GetRecordManager(); NFIRecord record = recordManager.GetRecord(System.Text.Encoding.Default.GetString(xData.record_name)); for (int i = 0; i < xData.property_list.Count; i++) { record.SetString(xData.property_list[i].row, xData.property_list[i].col, System.Text.Encoding.Default.GetString(xData.property_list[i].data)); } }
private void EGMI_ACK_RECORD_STRING(int id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.ObjectRecordString xData = NFMsg.ObjectRecordString.Parser.ParseFrom(xMsg.MsgData); NFIObject go = mKernelModule.GetObject(mHelpModule.PBToNF(xData.PlayerId)); NFIRecordManager recordManager = go.GetRecordManager(); NFIRecord record = recordManager.GetRecord(xData.RecordName.ToStringUtf8()); for (int i = 0; i < xData.PropertyList.Count; i++) { record.SetString(xData.PropertyList[i].Row, xData.PropertyList[i].Col, xData.PropertyList[i].Data.ToStringUtf8()); } }
private void EGMI_ACK_RECORD_STRING(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.ObjectRecordString xData = NFMsg.ObjectRecordString.Parser.ParseFrom(xMsg.msg_data); NFIObject go = mKernelModule.GetObject(mHelpModule.PBToNF(xData.player_id)); NFIRecordManager recordManager = go.GetRecordManager(); NFIRecord record = recordManager.GetRecord(xData.record_name.ToStringUtf8()); for (int i = 0; i < xData.property_list.Count; i++) { record.SetString(xData.property_list[i].row, xData.property_list[i].col, xData.property_list[i].data.ToStringUtf8()); } }