Exemple #1
0
        public void ParseLocationTestWithoutAction(string expectedSite, string expectedEndpoint, string inputLocation)
        {
            var parsedLocation = EntityAPI <Entity> .ParseLocation(string.Format(inputLocation, expectedSite, expectedEndpoint));

            parsedLocation.EndpointName.Should().Be(expectedEndpoint);
            parsedLocation.EndpointVersion.Should().Be("18.200.001");
            parsedLocation.ActionName.Should().BeNull();
            parsedLocation.Site.Should().Be(expectedSite);
        }
Exemple #2
0
 public Entity(string name = "")
 {
     ID         = new Guid();
     Name       = name;
     Transform  = new Transform();
     Children   = new List <Entity>();
     Components = new List <Component>();
     API        = new EntityAPI(this);
 }
Exemple #3
0
        internal static void InitializeHooks()
        {
            On.RoR2.RoR2Application.UnitySystemConsoleRedirector.Redirect += orig => { };

            SurvivorAPI.InitHooks();
            AssetAPI.InitHooks();
            ItemDropAPI.InitHooks();
            InventoryAPI.InitHooks();
            EntityAPI.InitHooks();
            LobbyConfigAPI.InitHooks();
        }