Contents
Class Dependency<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.dependency.Dependency<ECS_TYPE>
- Type Parameters:
ECS_TYPE- The type of the ECS the dependency is for.
- Direct Known Subclasses:
RootDependency, SystemDependency, SystemGroupDependency, SystemTypeDependency
An abstract representation of a dependency within the ECS.
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(Order order, int priority) Default Constructor for aDependencyinstance.Dependency(Order order, OrderPriority priority) Constructor for aDependencyinstance using anOrderPriority. -
Method Summary
Modifier and TypeMethodDescriptiongetOrder()intabstract voidresolveGraphEdge(ComponentRegistry<ECS_TYPE> registry, ISystem<ECS_TYPE> thisSystem, DependencyGraph<ECS_TYPE> graph) Adds this dependency into the dependency graph as a backwards dependency.toString()abstract voidvalidate(ComponentRegistry<ECS_TYPE> registry) Called to validate this dependency against the provided registry.
-
Constructor Details
-
Dependency
Default Constructor for aDependencyinstance.- Parameters:
order- The order of this dependency.priority- The priority of this dependency.
-
Dependency
Constructor for aDependencyinstance using anOrderPriority.- Parameters:
order- The order of this dependency.priority- The priority of this dependency.
-
-
Method Details
-
getOrder
- Returns:
- the order of this dependency.
-
getPriority
public int getPriority()- Returns:
- the priority of this dependency.
-
validate
Called to validate this dependency against the provided registry.- Parameters:
registry- The registry to validate against
-
resolveGraphEdge
public abstract void resolveGraphEdge(@Nonnull ComponentRegistry<ECS_TYPE> registry, @Nonnull ISystem<ECS_TYPE> thisSystem, @Nonnull DependencyGraph<ECS_TYPE> graph) Adds this dependency into the dependency graph as a backwards dependency. (The key in the map runs after on the systems in the set)- Parameters:
registry- the registry the systems are a part ofthisSystem- the system this dependency is fromgraph- the dependency graph
-
toString
-