Exemplo n.º 1
0
        public EntityDataT UnPack()
        {
            var _o = new EntityDataT();

            this.UnPackTo(_o);
            return(_o);
        }
Exemplo n.º 2
0
 public static Offset <N2S.FileFormat.EntityData> Pack(FlatBufferBuilder builder, EntityDataT _o)
 {
     if (_o == null)
     {
         return(default(Offset <N2S.FileFormat.EntityData>));
     }
     StartEntityData(builder);
     AddPos(builder, N2S.FileFormat.Vec2Int.Pack(builder, _o.Pos));
     AddType(builder, _o.Type);
     AddId(builder, _o.Id);
     return(EndEntityData(builder));
 }
Exemplo n.º 3
0
 public void UnPackTo(EntityDataT _o)
 {
     _o.Pos  = this.Pos.HasValue ? this.Pos.Value.UnPack() : null;
     _o.Type = this.Type;
     _o.Id   = this.Id;
 }