public static void LoadMetaDatabase() { var files = MetafileManager.GetMetaFiles(); if (files.Any()) { GlobalMetaCache.AddRange(files); } }
public override void Serialize(NetworkPacketWriter writer) { writer.Write(Type); if (Type == 0x00) { writer.Write( MetafileManager.GetMetaFile(Name)); } if (Type == 0x01) { writer.Write( MetafileManager.GetMetaFiles()); } }
public static void LoadMetaDatabase() { try { var files = MetafileManager.GetMetaFiles(); if (files.Any()) { GlobalMetaCache.AddRange(files); } } catch (Exception ex) { ServerContext.Logger(ex.Message, Microsoft.Extensions.Logging.LogLevel.Error); ServerContext.Logger(ex.StackTrace, Microsoft.Extensions.Logging.LogLevel.Error); } }