Update license year and fix doc to have Godot 3.0 download URL
This commit is contained in:
parent
5ccf351b5a
commit
0aab6e17ef
37 changed files with 42 additions and 55 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -9,7 +9,7 @@
|
||||||
"godot/godotapigen.nim"],
|
"godot/godotapigen.nim"],
|
||||||
"nim.buildOnSave": false,
|
"nim.buildOnSave": false,
|
||||||
"nim.lintOnSave": true,
|
"nim.lintOnSave": true,
|
||||||
"nim.licenseString": "# Copyright 2017 Xored Software, Inc.\n\n",
|
"nim.licenseString": "# Copyright 2018 Xored Software, Inc.\n\n",
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/nimcache/**": true
|
"**/nimcache/**": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
LICENSE
2
LICENSE
|
|
@ -2,7 +2,7 @@ godot-nim - Nim bindings for Godot Engine
|
||||||
|
|
||||||
The MIT License
|
The MIT License
|
||||||
|
|
||||||
Copyright (c) 2017 Xored Software Inc.
|
Copyright (c) 2018 Xored Software Inc.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
associated documentation files (the "Software"), to deal in the Software without restriction,
|
associated documentation files (the "Software"), to deal in the Software without restriction,
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ Documentation: https://pragmagic.github.io/godot-nim/
|
||||||
|
|
||||||
This project is licensed under the MIT license. Read [LICENSE](LICENSE) file for details.
|
This project is licensed under the MIT license. Read [LICENSE](LICENSE) file for details.
|
||||||
|
|
||||||
Copyright (c) 2017 Xored Software, Inc.
|
Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import threadpool, os, osproc, strutils, sequtils, pegs
|
import threadpool, os, osproc, strutils, sequtils, pegs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import os, pegs, strutils
|
import os, pegs, strutils
|
||||||
import docbuild
|
import docbuild
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ Nim bindings for Godot Engine
|
||||||
:Author: Ruslan Mustakov
|
:Author: Ruslan Mustakov
|
||||||
:Version: |godotnimversion|
|
:Version: |godotnimversion|
|
||||||
:GitHub: `$GODOTNIM_GITHUB_URL <$GODOTNIM_GITHUB_URL>`_
|
:GitHub: `$GODOTNIM_GITHUB_URL <$GODOTNIM_GITHUB_URL>`_
|
||||||
|
:License: MIT
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
|
|
@ -32,25 +33,11 @@ which adds features for editing GDScript and Godot resource files.
|
||||||
Getting Started
|
Getting Started
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Building Godot
|
Getting Godot
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
The library requires a not yet released Godot version 3.0, which you can
|
The library requires Godot version 3.0, which you can get here:
|
||||||
build yourself by running the commands below (requires
|
https://godotengine.org/download
|
||||||
`Git <https://git-scm.com/downloads>`_,
|
|
||||||
`Python 2.7 <https://www.python.org/downloads/>`_,
|
|
||||||
`SCons <http://www.scons.org/>`_):
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
git clone https://github.com/godotengine/godot.git
|
|
||||||
cd godot
|
|
||||||
scons platform=<your_platform>
|
|
||||||
|
|
||||||
where ``<your_platform>`` can be ``windows``, ``osx``, ``x11``. After build
|
|
||||||
is finished, Godot binaries will be under the ``bin`` folder. More details
|
|
||||||
about compiling Godot can be found in `Godot documentation
|
|
||||||
<https://godot.readthedocs.io/en/stable/development/compiling/index.html>`_.
|
|
||||||
|
|
||||||
|
|
||||||
Installing Nim
|
Installing Nim
|
||||||
-------------
|
-------------
|
||||||
|
|
@ -63,7 +50,7 @@ Make sure you also have ``nimble`` (Nim's package manager) installed.
|
||||||
Creating Project
|
Creating Project
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
The fastest way to set up a Godot-Nim project is to use an existing stub:
|
The fastest way to set up a Godot-Nim project is to use the existing stub:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
git clone --depth=1 https://github.com/pragmagic/godot-nim-stub.git myproject
|
git clone --depth=1 https://github.com/pragmagic/godot-nim-stub.git myproject
|
||||||
|
|
@ -88,7 +75,7 @@ If you would like to use Nim in an existing project:
|
||||||
build scripts (``nakefile.nim``, ``src/stub.nimble``) according to your
|
build scripts (``nakefile.nim``, ``src/stub.nimble``) according to your
|
||||||
own project structure.
|
own project structure.
|
||||||
|
|
||||||
2. Copy ``project/nimlib.tres`` to your Godot project folder. It is a
|
2. Copy ``nimlib.gdnlib`` to your Godot project folder. It is a
|
||||||
GDNative library resource that contains paths to dynamic libraries
|
GDNative library resource that contains paths to dynamic libraries
|
||||||
compiled by Nim.
|
compiled by Nim.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
version = "0.7.4"
|
version = "0.7.5"
|
||||||
author = "Xored Software, Inc."
|
author = "Xored Software, Inc."
|
||||||
description = "Godot Engine bindings"
|
description = "Godot Engine bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import hashes
|
import hashes
|
||||||
import internal.godotinternaltypes, internal.godotarrays
|
import internal.godotinternaltypes, internal.godotarrays
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import math
|
import math
|
||||||
import godotbase, vector3, quats
|
import godotbase, vector3, quats
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import hashes
|
import hashes
|
||||||
import internal.godotinternaltypes, internal.godotdictionaries,
|
import internal.godotinternaltypes, internal.godotdictionaries,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
type
|
type
|
||||||
Color* {.byref.} = object
|
Color* {.byref.} = object
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotnodepaths,
|
import internal.godotinternaltypes, internal.godotnodepaths,
|
||||||
internal.godotstrings
|
internal.godotstrings
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import vector3
|
import vector3
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotcoretypes
|
import godotcoretypes
|
||||||
import internal.godotinternaltypes, internal.godotpoolarrays,
|
import internal.godotinternaltypes, internal.godotpoolarrays,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import vector2
|
import vector2
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotcoretypes, internal.godotinternaltypes, gdnativeapi
|
import godotcoretypes, internal.godotinternaltypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotstrings
|
import internal.godotinternaltypes, internal.godotstrings
|
||||||
import godotcoretypes, gdnativeapi
|
import godotcoretypes, gdnativeapi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import math
|
import math
|
||||||
import godotbase, godotcoretypes
|
import godotbase, godotcoretypes
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, core.godotcoretypes, macros
|
import internal.godotinternaltypes, core.godotcoretypes, macros
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import core.godotbase, godotinternal
|
import core.godotbase, godotinternal
|
||||||
import core.godotcoretypes
|
import core.godotcoretypes
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import streams, json, os, strutils, times, sets, tables
|
import streams, json, os, strutils, times, sets, tables
|
||||||
import sequtils, algorithm
|
import sequtils, algorithm
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import internal.godotinternaltypes, internal.godotarrays,
|
import internal.godotinternaltypes, internal.godotarrays,
|
||||||
internal.godotnodepaths, internal.godotpoolarrays, internal.godotstrings,
|
internal.godotnodepaths, internal.godotpoolarrays, internal.godotstrings,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotinternaltypes, gdnativeapi, core.godotcoretypes
|
import godotinternaltypes, gdnativeapi, core.godotcoretypes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotinternaltypes, gdnativeapi
|
import godotinternaltypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
const MAX_ARG_COUNT* = 256
|
const MAX_ARG_COUNT* = 256
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotinternaltypes, gdnativeapi
|
import godotinternaltypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotinternaltypes, gdnativeapi
|
import godotinternaltypes, gdnativeapi
|
||||||
import core.godotcoretypes
|
import core.godotcoretypes
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2017 Xored Software, Inc.
|
# Copyright (c) 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import godotinternaltypes, gdnativeapi
|
import godotinternaltypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import core.godotcoretypes, godotinternaltypes, gdnativeapi
|
import core.godotcoretypes, godotinternaltypes, gdnativeapi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import macros, tables, typetraits
|
import macros, tables, typetraits
|
||||||
import godotinternal, internal.godotvariants
|
import godotinternal, internal.godotvariants
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2017 Xored Software, Inc.
|
# Copyright 2018 Xored Software, Inc.
|
||||||
|
|
||||||
import tables, typetraits, macros
|
import tables, typetraits, macros
|
||||||
import gdnativeapi
|
import gdnativeapi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue