Пример #1
0
    private static IEnumerable <IEnumerable <string> > GetRows <T>(TableHolder <T> holder, IEnumerable <PropertyInfo> properties)
    {
        var rows = from data in holder.Data
                   select(from property in properties
                          select property.GetValue(data, null).ToString());

        return(rows);
    }
Пример #2
0
        public IAssetEntry LoadTable(string tablePath, bool forciblyDownload)
        {
            if (isDestroyed)
            {
                string message = "asset bundle director has been destroyed";
                (this as IErrorReceiver).OnError(AssetBundleErrorCode.DestroyedInLoadingTable, message);
                return(null);
            }

            var entry = new TableHolder(tablePath, linker, coroutineOwner, this);

#if UNITY_EDITOR
            entry.SetLocalMode(this.LocalMode);
#endif
            entry.LoadTable(forciblyDownload);

            return(entry);
        }
Пример #3
0
 public UpdateCommand(TableHolder table) /* ... */ }
 public virtual IRowBuilder UpdateTable(string tableName)
 {
     m_currentTable = new TableHolder(tableName);
     m_commands.Add(new UpdateCommand(m_currentTable));
     return(this);
 }