소스 검색

Update instructions for generating to include enum->alias

Steven Schveighoffer 10 달 전
부모
커밋
b57a11ec03
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      generating.md

+ 8 - 0
generating.md

@@ -61,6 +61,14 @@ import raylib;
 Additionally, each of those modules will have an automatically generated `extern (C):` line. We need to find it and
 edit it to `extern (C) @nogc nothrow:`.
 
+Inside `source/raylib/package.d` there will be a line that looks like this:
+
+```d
+enum GetMouseRay = GetScreenToWorldRay; // Compatibility hack for previous raylib versions
+```
+
+This was translated by dstep to be an enum, but should be an alias. Replace `enum` with `alias`.
+
 This should be enough. Run `dub test` and see if it compiles.
 
 ## Generating raygui