public abstract SetInt ( int nRow, int nCol, System.Int64 value ) : bool | ||
nRow | int | |
nCol | int | |
value | System.Int64 | |
return | bool |
public override bool SetRecordInt(string strRecordName, int nRow, int nCol, Int64 nValue) { NFIRecord record = mRecordManager.GetRecord(strRecordName); if (null != record) { record.SetInt(nRow, nCol, nValue); return(true); } return(false); }
private void EGMI_ACK_RECORD_INT(NFMsg.MsgBase xMsg) { NFMsg.ObjectRecordInt xData = new NFMsg.ObjectRecordInt(); xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ObjectRecordInt)) as NFMsg.ObjectRecordInt; 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.SetInt(xData.property_list[i].row, xData.property_list[i].col, (int)xData.property_list[i].data); } }
private void EGMI_ACK_RECORD_INT(int id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.ObjectRecordInt xData = NFMsg.ObjectRecordInt.Parser.ParseFrom(xMsg.MsgData); NFIObject go = mKernelModule.GetObject(mHelpModule.PBToNF(xData.PlayerId)); if (go == null) { Debug.LogError("error id" + xData.PlayerId); return; } NFIRecordManager recordManager = go.GetRecordManager(); NFIRecord record = recordManager.GetRecord(xData.RecordName.ToStringUtf8()); for (int i = 0; i < xData.PropertyList.Count; i++) { record.SetInt(xData.PropertyList[i].Row, xData.PropertyList[i].Col, (int)xData.PropertyList[i].Data); } }