UnitComponent.cs 428 B

123456789101112131415
  1. using System.Collections.Generic;
  2. using Common.Base;
  3. using MongoDB.Bson;
  4. namespace Model
  5. {
  6. public class UnitComponent: Component<World>
  7. {
  8. public readonly Dictionary<ObjectId, Unit> units =
  9. new Dictionary<ObjectId, Unit>();
  10. public readonly Dictionary<int, Dictionary<ObjectId, Unit>> typeUnits =
  11. new Dictionary<int, Dictionary<ObjectId, Unit>>();
  12. }
  13. }