소스 검색

doc: added a note on registry::assign

Michele Caini 6 년 전
부모
커밋
5746df4d74
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/entt/entity/registry.hpp

+ 5 - 0
src/entt/entity/registry.hpp

@@ -631,6 +631,11 @@ public:
     /**
      * @brief Assigns entities to an empty registry.
      *
+     * This function is intended for use in conjunction with `raw`.<br/>
+     * Don't try to inject ranges of randomly generated entities because there
+     * is no guarantee that the registry will continue to function properly in
+     * this case.
+     *
      * @warning
      * An assertion will abort the execution at runtime in debug mode if all
      * pools aren't empty. Groups and context variables are ignored.