DBComponent.cs 386 B

123456789101112131415161718
  1. #if !UNITY_64
  2. using MongoDB.Driver;
  3. namespace ET.Server
  4. {
  5. /// <summary>
  6. /// 用来缓存数据
  7. /// </summary>
  8. [ChildOf(typeof(DBManagerComponent))]
  9. public class DBComponent: Entity, IAwake<string, string, int>, IDestroy
  10. {
  11. public const int TaskCount = 32;
  12. public MongoClient mongoClient;
  13. public IMongoDatabase database;
  14. }
  15. }
  16. #endif