Пример #1
0
 public EntityFullData(DictProp props, EntityState state, EntityMove mv, EntityReport report)
 {
     this.props  = props;
     this.state  = state;
     this.mv     = mv;
     this.report = report;
 }
Пример #2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            if (this.props == null)
            {
                this.props = new DictProp();
            }
            data.AddRange(this.props.__encode());
            if (this.state == null)
            {
                this.state = new EntityState();
            }
            data.AddRange(this.state.__encode());
            if (this.mv == null)
            {
                this.mv = new EntityMove();
            }
            data.AddRange(this.mv.__encode());
            if (this.report == null)
            {
                this.report = new EntityReport();
            }
            data.AddRange(this.report.__encode());
            return(data);
        }
Пример #3
0
 public EntityFullData()
 {
     props  = new DictProp();
     state  = new EntityState();
     mv     = new EntityMove();
     report = new EntityReport();
 }
Пример #4
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.props = new DictProp();
     this.props.__decode(binData, ref pos);
     this.state = new EntityState();
     this.state.__decode(binData, ref pos);
     this.mv = new EntityMove();
     this.mv.__decode(binData, ref pos);
     this.report = new EntityReport();
     this.report.__decode(binData, ref pos);
     return(pos);
 }