Coder Social home page Coder Social logo

greenbehaviors's Introduction

GreenBehaviors

Behavior trees for godot (C#).

How to setup

First add as a submodule using the following command.

git submodule add https://github.com/skorpi-and-friends/GreenBehaviors addons/GreenBehaviors

Try to make your projects .csproj to look something like this:

<!-- You'll only need to add parts that don't exist -->
<Project Sdk="Godot.NET.Sdk/3.2.3">
  <PropertyGroup>
    <!-- . -->
    <!-- . -->
    <!-- 
      we need to disable default compilation so that GreenBehaviors source files
      will be compiled in a separate project
     -->
    <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
    <!-- . -->
    <!-- . -->
  </PropertyGroup>
  <!-- . -->
  <!-- . -->
  <ItemGroup>
    <Compile Include="**/*.cs" Exclude=".mono/**;addons/GreenBehaviors**" />
    <ProjectReference Include="addons\GreenBehaviors\GreenBehaviors.csproj" />
  </ItemGroup>
  <!-- . -->
  <!-- . -->
</Project>

If using the old .csproj format

That is, the one that was in use before 3.2.3, some more work awaits you. First go into GreenBehaviors.csproj and you'll find a large commented out section at the bottom. De-comment that and comment out the previously active section (the one at the top). Then add the following to your project's .csproj to link GreenBehaviors:

  <ItemGroup>
    <ProjectReference Include="addons\GreenBehaviors\GreenBehaviors.csproj" />
  </ItemGroup>

That's it.

greenbehaviors's People

Contributors

dman-os avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.