I'm looking in to creating a P4 plugin for Godot as it's what I wanted to use for a project but P4's behavior is directly at odds with how Godot needs to work. For those reading unfamiliar with P4, all files are locked by default and must be "Check Out" in P4 to be editable.
The behavior I would need for the plugin to be actually usable would be:
- Godot auto checking out files that it's trying to save/overwrite
- Files that are deleted or added in Godot need to be marked for "delete/add" in Perforce
My first thought was to look at the existing official Git Plugin but I'm honestly not clear on where to start. My understanding is that I need to implement this:
https://docs.godotengine.org/en/stable/classes/class_editorvcsinterface.html
I have the p4 documentation (here https://www.perforce.com/downloads/helix-core-c/c-api), so I think I have everything I need to start making it but I'm not sure actually sure where I would start 😅
For example in the Git Plug in repo (https://github.com/godotengine/godot-git-plugin), I could be mistaken but none of the c++ files seem to implement the EditorVCSInterface? Hopefully someone can provide me with some direction, thanks!
Inherits: Object Version Control System (VCS) interface, which reads and writes to the local VCS in use. Description: Defines the API that the editor uses to extract information from the underlying...

