public FRAME_DATA createFromStreamEx(MemoryStream stream) { FRAME_DATA datas = new FRAME_DATA(); datas.frameid = stream.readUint32(); datas.operation = operation_DataType.createFromStreamEx(stream); return(datas); }
public override void onRemoteMethodCall(MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Avatar"]; UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; if (sm.useMethodDescrAlias) { componentPropertyUType = stream.readUint8(); methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); methodUtype = stream.readUint16(); } Method method = null; if (componentPropertyUType == 0) { method = sm.idmethods[methodUtype]; } else { Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType]; switch (pComponentPropertyDescription.properUtype) { case 6: component1.onRemoteMethodCall(methodUtype, stream); break; default: break; } return; } switch (method.methodUtype) { case 5: UInt64 onGameBegine_arg1 = stream.readUint64(); onGameBegine(onGameBegine_arg1); break; case 4: FRAME_DATA onRspFrameMessage_arg1 = ((DATATYPE_FRAME_DATA)method.args[0]).createFromStreamEx(stream); onRspFrameMessage(onRspFrameMessage_arg1); break; default: break; } ; }
public override void onRspFrameMessage(FRAME_DATA framedata) { //Event.fireOut("onRecieveFrame", new object[] { framedata }); GameData.Instance.frameList.Enqueue(framedata); // Debug.Log("--onRspFrameMessage tick : " + DateTime.Now.ToString() + ":" + DateTime.Now.Millisecond.ToString() + ",frameid:"+ framedata.frameid); }
public abstract void onRspFrameMessage(FRAME_DATA arg1);
public override void onRspFrameMessage(FRAME_DATA framedata) { // Event.fireOut("onRecieveFrame", new object[] { this, framedata }); PlayerData.Instance.frame_list[framedata.frameid] = framedata; // Debug.Log("--onRspFrameMessage tick : " + DateTime.Now.ToString() + ":" + DateTime.Now.Millisecond.ToString() + ",frameid:"+ framedata.frameid); }
public void addToStreamEx(Bundle stream, FRAME_DATA v) { stream.writeUint32(v.frameid); operation_DataType.addToStreamEx(stream, v.operation); }