New Inventory System + Overhaul
Removed universal GameContext references Refactored GameContext: It's now only responsible for item management. As such it's now called ItemManager GlobalData is gone, relevant settings are distributed amongst specialized settings classes Entities are no longer database entries, references to them are now direct - Zone is reponsible for storing them in ZonePacks Controller subtypes are now generic classes, class argument is task type Inventory is now a 2D grid instead of a list Entity temperature is now a 2D grid instead of a number Item sizes are now arbitrary shapes instead of a number Hardpoints are now arbitrary shapes instead Equipped items have their own temperatures Map view now displays sunlight colors Integrated Allegorithmic Substance Plugin Imported Djinni ship and assigned Substance materials Removed Node Editor framework (might come back later but needs work to integrate with behavior system)
This commit is contained in:
parent
53a91351b7
commit
f643f6cc8a
330 changed files with 24242 additions and 2830 deletions
|
|
@ -41,6 +41,11 @@ public interface IAlwaysUpdatedBehavior
|
|||
void AlwaysUpdate(float delta);
|
||||
}
|
||||
|
||||
public interface IOrderedBehavior
|
||||
{
|
||||
int Order { get; }
|
||||
}
|
||||
|
||||
public interface IPersistentBehavior//<T> where T : IBehavior
|
||||
{
|
||||
PersistentBehaviorData Store();
|
||||
|
|
@ -52,12 +57,12 @@ public interface IPopulationAssignment
|
|||
int AssignedPopulation { get; set; }
|
||||
}
|
||||
|
||||
public interface IController
|
||||
public interface IController<T> where T: AgentTask
|
||||
{
|
||||
bool Available { get; }
|
||||
TaskType TaskType { get; }
|
||||
//TaskType TaskType { get; }
|
||||
Zone Zone { get; }
|
||||
void AssignTask(Guid task);
|
||||
void AssignTask(T task);
|
||||
}
|
||||
|
||||
[MessagePackObject,
|
||||
|
|
@ -106,5 +111,5 @@ public abstract class BehaviorData
|
|||
[InspectableField, JsonProperty("group"), Key(0)]
|
||||
public int Group;
|
||||
|
||||
public abstract IBehavior CreateInstance(GameContext context, Entity entity, Gear item);
|
||||
public abstract IBehavior CreateInstance(ItemManager context, Entity entity, EquippedItem item);
|
||||
}
|
||||
Loading…
Reference in a new issue