Use Godot-accessible Resources folder.

Fixes #62
This commit is contained in:
PJB3005
2018-08-31 10:49:48 +02:00
parent d414ea55f5
commit 06ea07eca5
4 changed files with 14 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ using Content.Client.GameObjects.Components.Storage;
using Content.Client.Input; using Content.Client.Input;
using Content.Client.Interfaces.GameObjects; using Content.Client.Interfaces.GameObjects;
using SS14.Client.Interfaces.Input; using SS14.Client.Interfaces.Input;
using SS14.Client.Utility;
using SS14.Shared.ContentPack; using SS14.Shared.ContentPack;
using SS14.Shared.Interfaces.GameObjects; using SS14.Shared.Interfaces.GameObjects;
using SS14.Shared.IoC; using SS14.Shared.IoC;
@@ -17,6 +18,9 @@ namespace Content.Client
{ {
public override void Init() public override void Init()
{ {
#if DEBUG
GodotResourceCopy.DoDirCopy("../../Resources", "Content");
#endif
var factory = IoCManager.Resolve<IComponentFactory>(); var factory = IoCManager.Resolve<IComponentFactory>();
var prototypes = IoCManager.Resolve<IPrototypeManager>(); var prototypes = IoCManager.Resolve<IPrototypeManager>();

7
Resources/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
# .import files are made by Godot because the assets are exposed if using symlinks.
# IF you need to persist a .import file because of something used Godot-side (GUI-side),
# you can do a negation with !.
*.import
# Negation would be like this:
#!/Textures/UserInterface/handsbox.png.import
/I_MADE_THE_SYMLINK

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=3 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://Scenes/Inventory/StorageSlot.tres" type="StyleBox" id=1] [ext_resource path="res://Content/Scenes/Inventory/StorageSlot.tres" type="StyleBox" id=1]
[ext_resource path="res://Scenes/SpriteMirror/SpriteView.tscn" type="PackedScene" id=2] [ext_resource path="res://Scenes/SpriteMirror/SpriteView.tscn" type="PackedScene" id=2]
[node name="PanelContainer" type="PanelContainer"] [node name="PanelContainer" type="PanelContainer"]
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0

2
engine

Submodule engine updated: a1f3c5fdbb...6e95476156