コード例 #1
0
        internal void AddEntity(GameObject obj)
        {
            Type t = obj.GetType();

            GameEntityStorage storage = _entities.FirstOrDefault(s => s.EntityType == obj.GetType());

            if (storage == null)
            {
                throw new InvalidOperationException();
            }

            storage.AddEntity(obj);
        }
コード例 #2
0
 internal void AddEntity(GameObject obj, GameEntityStorage storage)
 {
     storage.AddEntity(obj);
 }