public virtual void reportFrame(FS_ENTITY_DATA operation) { operation.entityid = ownerID; operation.cmd_type = 1; cellEntityCall.reportFrame(operation); //Debug.Log(System.DateTime.Now + "." + System.DateTime.Now.Millisecond+",reportFrame:" + operation.entityid + operation.cmd_type + operation.datas); }
public FS_ENTITY_DATA createFromStreamEx(MemoryStream stream) { FS_ENTITY_DATA datas = new FS_ENTITY_DATA(); datas.entityid = stream.readInt32(); datas.cmd_type = stream.readUint8(); datas.datas = stream.readBlob(); return(datas); }
/** * @brief Serialize data to FS_ENTITY_DATA. **/ public override FS_ENTITY_DATA Serialize() { List <byte> data = new List <byte>(); Serialize(data); FS_ENTITY_DATA e = new FS_ENTITY_DATA(); e.entityid = ownerID; e.datas = data.ToArray(); return(e); }
public void reportFrame(FS_ENTITY_DATA arg1) { Bundle pBundle = newCall("reportFrame", entityComponentPropertyID); if (pBundle == null) { return; } ((DATATYPE_FS_ENTITY_DATA)EntityDef.id2datatypes[28]).addToStreamEx(bundle, arg1); sendCall(null); }
/** * @brief Deserialize from FS_ENTITY_DATA. **/ public override void Deserialize(FS_ENTITY_DATA e) { if (e.entityid <= 0) { return; } ownerID = e.entityid; int offset = 0; Deserialize(e.datas, ref offset); }
public void addToStreamEx(Bundle stream, FS_ENTITY_DATA v) { stream.writeInt32(v.entityid); stream.writeUint8(v.cmd_type); stream.writeBlob(v.datas); }
public abstract void Deserialize(FS_ENTITY_DATA e);