Skip to content
generated from GDGVIT/template

combined repository for wasd-editor with the unity interpreter and editor

License

Notifications You must be signed in to change notification settings

GDGVIT/wasd-editor

Repository files navigation

WASDEditor Project

GDSC VIT

WASDEditor: A Simple Open-Source Dialogue System

WASDEditor


Join Us Discord Chat DOCS UI

Project Components

This project consists of three main components:

  1. WASD Editor - Core editor implementation
  2. WASD Editor Unity Interpreter - Unity integration package

Features

Editor

  • Character Creation
  • Branching Dialogue Trees
  • Designer Friendly Interface
  • JSON Export Format

Unity Integration

  • Sample Dialogue System Implementation
  • Easy Integration with Existing Projects
  • Dialogue Callbacks Support
  • Compatible with Editor Output

Dependencies

Editor Development

  • Unity Engine (2023+)
  • Newtonsoft JSON (com.unity.nuget.newtonsoft-json)

Unity Interpreter

  • Newtonsoft JSON Package
  • Unity 2023+

Installation & Usage

Editor

  1. Download the binaries from gdscvit/itch.io
  2. Run the application directly - no additional dependencies required

Unity Interpreter

  1. Import the Unity package into your Unity 2023+ project
  2. Add the provided prefab to your scene
  3. Import JSON files exported from the editor
  4. Call DialogueTreeInterpreter.StartDialogue(TextAsset t) to initiate dialogue
  5. Implement dialogue callbacks as needed

Technical Details

Data Format

The following class is used to generate the json output of the program. It uses the newtonsoft.json library to Serialize and Deserialize data

// Core Data Classes
public class DialogueTree
{
    public Dictionary<string, float> variables;
    public Character[] chars;
    public DialogueData[] dialogues;
}

public class DialogueData
{
    public int id;
    public string title;
    public string line;
    public OptionData[] options;
    public int[] charIDs;
    public int charCurrentlySpeaking;
}

public struct Character
{
    public int id;
    public string Name;
}

public struct OptionData
{
    public string title;
    public int id;
}

External Libraries

Contributors

graphicmismatch (Rayan Madan)

graphicmismatch(Rayan Madan)

GitHub LinkedIn

Made with ❤ by GDSC-VIT

About

combined repository for wasd-editor with the unity interpreter and editor

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published