Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        /**
         * @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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        /**
         * @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);
        }
Beispiel #6
0
 public void addToStreamEx(Bundle stream, FS_ENTITY_DATA v)
 {
     stream.writeInt32(v.entityid);
     stream.writeUint8(v.cmd_type);
     stream.writeBlob(v.datas);
 }
Beispiel #7
0
 public abstract void Deserialize(FS_ENTITY_DATA e);