How chanyavrc/vrcosclib works
Main Components
• Core Library (VRCOscLib): This is the heart of the project. It contains multiple sub-modules:
• Avatar Module: Classes in BuildSoft.VRChat.Osc.Avatar (e.g., OscAvatarConfig, OscAvatar, OscAvatarParameter, etc.).
• Input Module: Handling button and axis inputs via BuildSoft.VRChat.Osc.Input (OscAxisInput and OscButtonInput).
• Chatbox Module: For sending messages using BuildSoft.VRChat.Osc.Chatbox.
• Utility and Collections: Helpers, event handlers, and delegates along with utility functions used across the scope.
• Sample Applications: These illustrate how consumers can use the library. They are separate applications that either use a user interface (via XAML-based apps) or console-based programs.
• Test Suite: Located under src/VRCOscLib/Tests – providing unit and performance tests to verify functionality.
• Documentation and CI/CD: The docs folder and Github workflows (e.g., dotnet, nuget, publish-docs) indicate automated build, testing, and deployment pipelines.
Relationships & Interactions
• Core Library Modules Interactions: Components within the core (e.g., Avatar module sending parameters to Chatbox module or using Utility functions) interact with each other; highlight these inter-module dependencies.
• Tests → Core Library: The test suite validates core functionality using various test cases. Show that tests “depend on” core components.
Architectural Patterns and Design Principles
• Modular Design: The core library is broken into logical modules (Avatar, Input, Chatbox), demonstrating separation of concerns.
• Event-Driven Architecture: With various event delegates and utility functions (e.g., OscValueChangedEventHandler), the design hints at event-driven interactions.
• Dependency Inversion: The samples and tests depend on the core library which abstracts the VRChat OSC actions, making the system modular and testable.
• Extensibility: The library’s structure (including various namespaces and utility classes) suggests it is built for easy extension and integration, as well as reuse in different contexts.
Putting It All Together
• If desired, add a layer for the “Test Suite” that interacts with the core library.
• Don’t forget to annotate the CI/CD workflows and documentation processes to reflect the automated build and deployment processes.
• Finally, label external systems like the NuGet Package Manager and VRChat itself, clarifying that VRCOscLib eventually interfaces with VRChat OSC endpoints.