public MAILDATA createFromStreamEx(MemoryStream stream) { MAILDATA datas = new MAILDATA(); datas.senderID = stream.readUint64(); datas.senderName = stream.readUnicode(); datas.recverID = stream.readUint64(); return(datas); }
//邮件数据 public override void receiveMail(MAILDATA arg1) { KBEngine.Event.fireOut("receiveMail", new object[] { arg1 }); }
public abstract void receiveMail(MAILDATA arg1);
public override void onRemoteMethodCall(MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Account"]; UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; if (sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); } if (sm.useMethodDescrAlias) { methodUtype = stream.readUint8(); } else { methodUtype = stream.readUint16(); } Method method = null; if (componentPropertyUType == 0) { method = sm.idmethods[methodUtype]; } else { Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType]; switch (pComponentPropertyDescription.properUtype) { default: break; } return; } switch (method.methodUtype) { case 33: POKERLIST displayPoker_arg1 = ((DATATYPE_POKERLIST)method.args[0]).createFromStreamEx(stream); displayPoker(displayPoker_arg1); break; case 37: FRIENDDATALIST friendListData_arg1 = ((DATATYPE_FRIENDDATALIST)method.args[0]).createFromStreamEx(stream); friendListData(friendListData_arg1); break; case 26: initGamePoker(); break; case 31: SByte loadLandlordPoker_arg1 = stream.readInt8(); POKERLIST loadLandlordPoker_arg2 = ((DATATYPE_POKERLIST)method.args[1]).createFromStreamEx(stream); loadLandlordPoker(loadLandlordPoker_arg1, loadLandlordPoker_arg2); break; case 27: notifyToCallLandlord(); break; case 28: SByte notifyToPlayPoker_arg1 = stream.readInt8(); notifyToPlayPoker(notifyToPlayPoker_arg1); break; case 34: passPoker(); break; case 32: playPokerFailed(); break; case 29: SByte playerReadyGame_arg1 = stream.readInt8(); SByte playerReadyGame_arg2 = stream.readInt8(); playerReadyGame(playerReadyGame_arg1, playerReadyGame_arg2); break; case 30: SByte playerToLandlord_arg1 = stream.readInt8(); SByte playerToLandlord_arg2 = stream.readInt8(); playerToLandlord(playerToLandlord_arg1, playerToLandlord_arg2); break; case 35: Int32 pokerGameOver_arg1 = stream.readInt32(); pokerGameOver(pokerGameOver_arg1); break; case 36: MAILDATA receiveMail_arg1 = ((DATATYPE_MAILDATA)method.args[0]).createFromStreamEx(stream); receiveMail(receiveMail_arg1); break; case 25: SByte returnErrorMessage_arg1 = stream.readInt8(); returnErrorMessage(returnErrorMessage_arg1); break; case 38: Int32 stayInRoom_arg1 = stream.readInt32(); stayInRoom(stayInRoom_arg1); break; default: break; } ; }
public void addToStreamEx(Bundle stream, MAILDATA v) { stream.writeUint64(v.senderID); stream.writeUnicode(v.senderName); stream.writeUint64(v.recverID); }