Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions unity/com.ic.gamekit/ICP.NET.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added unity/com.ic.gamekit/ICP.NET/Chaos.NaCl.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/Chaos.NaCl.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added unity/com.ic.gamekit/ICP.NET/Dahomey.Cbor.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/Dahomey.Cbor.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/EdjCase.ICP.Agent.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/EdjCase.ICP.Candid.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Ethan Celletti

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, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/LICENSE.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/Microsoft.Bcl.HashCode.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
27 changes: 27 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/System.Collections.Immutable.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions unity/com.ic.gamekit/ICP.NET/System.IO.Pipelines.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions unity/com.ic.gamekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ You can turn on/off the post-build callback. With this checked, a folder named `

Please follow the [Unity WebGL Sample](https://github.com/dfinity/examples/tree/master/hosting/unity-webgl-template) to deploy the generated IC project to the Internet Computer.

## IC Agent

The Internet Computer Agent is based on [ICP.NET](https://github.com/edjCase/ICP.NET) which provides the Internet Computer Protocol(ICP) libraries for .NET.

### ICP.NET Integration
Here describes how the [ICP.NET](https://github.com/edjCase/ICP.NET) is integrated, basically explains how the managed dlls under `ICP.NET` folder are generated.

- `EdjCase.ICP.Agent.dll` & `EdjCase.ICP.Candid.dll` are compiled from [ICP.NET](https://github.com/edjCase/ICP.NET) directly, they're targeted to .NET standard 2.0, so it’s okay to use them directly.
- For all the other dependencies, including
- Chaos.NaCl.dll (1.0.0)
- Dahomey.Cbor.dll (1.16.1)
- System.Collections.Immutable (6.0.0)
- System.Runtime.CompilerServices.Unsafe (6.0.0)
- System.IO.Pipelines (6.0.1)
- Microsoft.Bcl.HashCode.dll (1.1.1)

Download the packages with the right version from https://www.nuget.org/packages and choose the dll with netstandard2.0 version.

## Troubleshooting

### Get 500 error while browsing the game
Expand Down
1 change: 1 addition & 0 deletions unity/com.ic.gamekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"keywords": [
"Internet Computer",
"GameKit",
"Agent",
"WebGL",
"HTML5"
]
Expand Down