-
Notifications
You must be signed in to change notification settings - Fork 6
接口手册
./SimCivil/Auth/IAuthManager.cs
./SimCivil/Components/IComponent.cs
./SimCivil/Controller/IController.cs
./SimCivil/ITicker.cs
./SimCivil/Map/IMapGenerator.cs
./SimCivil/Model/IEntityManager.cs
./SimCivil/Store/IEntityRepository.cs
./SimCivil/Store/IMapRepository.cs
./SimCivil/Store/IPersistable.cs
./SimCivil/Store/IPlayerRepository.cs
./SimCivil/Store/IPrefabRepository.cs
./SimCivil.Contract/IAuth.cs
./SimCivil.Contract/IPlayerController.cs
./SimCivil.Contract/IRoleManager.cs
./SimCivil.Contract/IViewSynchronizer.cs
./SimCivil.Orleans.Interfaces/IAccount.cs
账户actor、负责登陆注册以及角色管理。对应IAuth
和IRoleManager
。
索引: 帐户名
./SimCivil.Orleans.Interfaces/IAtlas.cs
地图集actor、对应一块地图区域,负责其中Tile
的管理和生成。地图集坐标由Tile
坐标整除Altas
尺寸得到
索引:(地图集X坐标 & 0xFFFFFFFF) | (地图集Y坐标 << 32)
./SimCivil.Orleans.Interfaces/IChunk.cs
区块actor、对应一块地图区域,负责处理其中Entity
之间的交互与碰撞。区块坐标由Entity
坐标整除Chunk
尺寸得到。Chunk
尺寸与Altas
尺寸一般情况不相同。
索引:(区块X坐标 & 0xFFFFFFFF) | (区块Y坐标 << 32)
./SimCivil.Orleans.Interfaces/IComponent.cs
./SimCivil.Orleans.Interfaces/IComponent.cs
组件actor、负责管理单个组件Component
T的状态。接口设计应当只涉及变更自身状态并提供一些原子操作函数,可以考虑通过steams
或者observer
通知状态改变。
索引:组件所属的Entity
的ID
./SimCivil.Orleans.Interfaces/IEntity.cs
./SimCivil.Orleans.Interfaces/IEntityGroup.cs
./SimCivil.Orleans.Interfaces/IGame.cs
./SimCivil.Orleans.Interfaces/Service/IMapGenerator.cs
./SimCivil.Rpc/ICallWarper.cs
./SimCivil.Rpc/Session/IRpcSession.cs
./SimCivil.Rpc/Session/ISessionRequred.cs