コード例 #1
0
 //============================================================
 public void Unserialize(IInput input)
 {
     // 读取设置
     _typeCd     = input.ReadUint8();
     _source     = input.ReadString();
     _sourceType = input.ReadString();
     // 设置对象
     _texture = RDxCore.TextureResourceConsole.Get(_source);
 }
コード例 #2
0
        //============================================================
        public FDxRsTexturePack Get(string code)
        {
            FDxRsTexturePack texture = _textures.Find(code);

            if (null == texture)
            {
                texture = new FDxRsTexturePack();
                string fileName = MakeFileName(code);
                texture.LoadFile(fileName);
                _textures.Set(code, texture);
            }
            return(texture);
        }