feat: Enhance simulation state management to include StaticMachineEventsSchema
- Updated various modules to accommodate StaticMachineEventsSchema in simulation states. - Modified event handling in addAssetModel, deleteFloorItems, and loadInitialFloorItems to support new event types. - Adjusted type definitions in worldTypes.d.ts to define StaticMachineEventsSchema. - Refactored path management in processCreator and simulation to handle new event types. - Ensured compatibility in selection and manipulation controls for StaticMachine events. - Removed bug that made the other assets not droppable
This commit is contained in:
@@ -341,12 +341,12 @@ export const useSelectedPath = create<any>((set: any) => ({
|
||||
}));
|
||||
|
||||
interface SimulationPathsStore {
|
||||
simulationStates: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema)[];
|
||||
simulationStates: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema | Types.StaticMachineEventsSchema)[];
|
||||
setSimulationStates: (
|
||||
paths:
|
||||
| (Types.ConveyorEventsSchema | Types.VehicleEventsSchema)[]
|
||||
| ((prev: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema)[]
|
||||
) => (Types.ConveyorEventsSchema | Types.VehicleEventsSchema)[])
|
||||
| (Types.ConveyorEventsSchema | Types.VehicleEventsSchema | Types.StaticMachineEventsSchema)[]
|
||||
| ((prev: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema | Types.StaticMachineEventsSchema)[]
|
||||
) => (Types.ConveyorEventsSchema | Types.VehicleEventsSchema | Types.StaticMachineEventsSchema)[])
|
||||
) => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user