You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMap.cs 627 B

1234567891011121314151617181920
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using Preparation.Utility;
  4. namespace Preparation.Interface
  5. {
  6. public interface IMap
  7. {
  8. ITimer Timer { get; }
  9. // the two dicts must have same keys
  10. Dictionary<GameObjType, IList<IGameObj>> GameObjDict { get; }
  11. Dictionary<GameObjType, ReaderWriterLockSlim> GameObjLockDict { get; }
  12. public uint[,] ProtoGameMap { get; }
  13. public PlaceType GetPlaceType(IGameObj obj);
  14. public bool IsOutOfBound(IGameObj obj);
  15. public IOutOfBound GetOutOfBound(XY pos); // 返回新建的一个OutOfBound对象
  16. }
  17. }