2017-09-26 21:27:48 +02:00
|
|
|
|
using Content.Client.GameObjects;
|
2018-08-02 08:29:55 +02:00
|
|
|
|
using Content.Client.GameObjects.Components.Construction;
|
2018-05-27 16:44:50 +02:00
|
|
|
|
using Content.Client.GameObjects.Components.Power;
|
2018-08-09 20:22:54 +02:00
|
|
|
|
using Content.Client.GameObjects.Components.SmoothWalling;
|
2018-04-22 06:11:38 -05:00
|
|
|
|
using Content.Client.GameObjects.Components.Storage;
|
2018-08-16 15:57:11 -07:00
|
|
|
|
using Content.Client.Input;
|
2017-09-26 21:27:48 +02:00
|
|
|
|
using Content.Client.Interfaces.GameObjects;
|
2018-08-16 15:57:11 -07:00
|
|
|
|
using SS14.Client.Interfaces.Input;
|
2018-08-31 10:49:48 +02:00
|
|
|
|
using SS14.Client.Utility;
|
2017-09-26 21:27:48 +02:00
|
|
|
|
using SS14.Shared.ContentPack;
|
2017-09-26 19:59:31 +02:00
|
|
|
|
using SS14.Shared.Interfaces.GameObjects;
|
|
|
|
|
|
using SS14.Shared.IoC;
|
2018-08-02 08:29:55 +02:00
|
|
|
|
using SS14.Shared.Prototypes;
|
2017-08-04 14:24:01 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Client
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EntryPoint : GameClient
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Init()
|
|
|
|
|
|
{
|
2018-08-31 10:49:48 +02:00
|
|
|
|
#if DEBUG
|
|
|
|
|
|
GodotResourceCopy.DoDirCopy("../../Resources", "Content");
|
|
|
|
|
|
#endif
|
2017-09-26 19:59:31 +02:00
|
|
|
|
var factory = IoCManager.Resolve<IComponentFactory>();
|
2018-08-02 08:29:55 +02:00
|
|
|
|
var prototypes = IoCManager.Resolve<IPrototypeManager>();
|
2017-09-26 19:59:31 +02:00
|
|
|
|
|
|
|
|
|
|
factory.RegisterIgnore("Item");
|
2017-10-06 21:05:21 +02:00
|
|
|
|
factory.RegisterIgnore("Interactable");
|
2017-10-07 15:15:29 +02:00
|
|
|
|
factory.RegisterIgnore("Damageable");
|
|
|
|
|
|
factory.RegisterIgnore("Destructible");
|
|
|
|
|
|
factory.RegisterIgnore("Temperature");
|
2018-02-03 22:35:42 -06:00
|
|
|
|
factory.RegisterIgnore("PowerTransfer");
|
|
|
|
|
|
factory.RegisterIgnore("PowerNode");
|
|
|
|
|
|
factory.RegisterIgnore("PowerProvider");
|
|
|
|
|
|
factory.RegisterIgnore("PowerDevice");
|
|
|
|
|
|
factory.RegisterIgnore("PowerStorage");
|
|
|
|
|
|
factory.RegisterIgnore("PowerGenerator");
|
2017-09-26 21:27:48 +02:00
|
|
|
|
|
2018-02-06 19:03:36 -06:00
|
|
|
|
factory.RegisterIgnore("Wirecutter");
|
|
|
|
|
|
factory.RegisterIgnore("Screwdriver");
|
|
|
|
|
|
factory.RegisterIgnore("Multitool");
|
|
|
|
|
|
factory.RegisterIgnore("Welder");
|
|
|
|
|
|
factory.RegisterIgnore("Wrench");
|
|
|
|
|
|
factory.RegisterIgnore("Crowbar");
|
2018-04-05 17:32:51 -05:00
|
|
|
|
factory.RegisterIgnore("HitscanWeapon");
|
|
|
|
|
|
factory.RegisterIgnore("ProjectileWeapon");
|
|
|
|
|
|
factory.RegisterIgnore("Projectile");
|
|
|
|
|
|
factory.RegisterIgnore("MeleeWeapon");
|
2018-02-06 19:03:36 -06:00
|
|
|
|
|
2018-04-22 06:11:38 -05:00
|
|
|
|
factory.RegisterIgnore("Storeable");
|
2018-04-25 06:42:35 -05:00
|
|
|
|
factory.RegisterIgnore("Clothing");
|
2018-04-22 06:11:38 -05:00
|
|
|
|
|
2018-08-02 08:29:55 +02:00
|
|
|
|
factory.RegisterIgnore("Material");
|
|
|
|
|
|
factory.RegisterIgnore("Stack");
|
|
|
|
|
|
|
2017-09-26 21:27:48 +02:00
|
|
|
|
factory.Register<HandsComponent>();
|
|
|
|
|
|
factory.RegisterReference<HandsComponent, IHandsComponent>();
|
2018-04-22 06:11:38 -05:00
|
|
|
|
factory.Register<ClientStorageComponent>();
|
2018-04-25 06:42:35 -05:00
|
|
|
|
factory.Register<ClientInventoryComponent>();
|
2018-05-27 16:44:50 +02:00
|
|
|
|
factory.Register<PowerDebugTool>();
|
2018-08-02 08:29:55 +02:00
|
|
|
|
factory.Register<ConstructorComponent>();
|
|
|
|
|
|
factory.Register<ConstructionGhostComponent>();
|
2018-08-09 20:22:54 +02:00
|
|
|
|
factory.Register<IconSmoothComponent>();
|
2018-08-02 08:29:55 +02:00
|
|
|
|
|
2018-08-09 22:50:05 +02:00
|
|
|
|
factory.RegisterIgnore("Construction");
|
|
|
|
|
|
factory.RegisterIgnore("Apc");
|
|
|
|
|
|
factory.RegisterIgnore("Door");
|
|
|
|
|
|
factory.RegisterIgnore("PoweredLight");
|
|
|
|
|
|
factory.RegisterIgnore("Smes");
|
|
|
|
|
|
|
2018-08-02 08:29:55 +02:00
|
|
|
|
prototypes.RegisterIgnore("material");
|
2018-08-16 15:57:11 -07:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void PostInit()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.PostInit();
|
|
|
|
|
|
|
|
|
|
|
|
// Setup key contexts
|
|
|
|
|
|
var inputMan = IoCManager.Resolve<IInputManager>();
|
|
|
|
|
|
ContentContexts.SetupContexts(inputMan.Contexts);
|
2017-08-04 14:24:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|