예제 #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);
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #6
0
 public void addToStreamEx(Bundle stream, FS_ENTITY_DATA v)
 {
     stream.writeInt32(v.entityid);
     stream.writeUint8(v.cmd_type);
     stream.writeBlob(v.datas);
 }
예제 #7
0
 public abstract void Deserialize(FS_ENTITY_DATA e);