/// <summary> /// Adds the <paramref name="copyData"/> to the entity's data at the specified data path /// </summary> /// <param name="toSelector">The entity to copy to</param> /// <param name="toDataPath">The data path to copy to</param> /// <param name="copyData">The data to insert</param> /// <param name="modifierType">The way to add the data</param> public void Change(BaseSelector toSelector, string toDataPath, ID.EntityDataModifierType modifierType, Data.SimpleDataHolder copyData) { toSelector.LimitSelector(); ForFunction.AddCommand(new DataModifyWithDataCommand(new EntityDataLocation(toSelector, toDataPath), modifierType, copyData)); }
/// <summary> /// Adds the <paramref name="copyData"/> to the entity's data at the specified data path at the specified index of the array /// </summary> /// <param name="toSelector">The entity to copy to</param> /// <param name="toDataPath">The data path to copy to</param> /// <param name="copyData">The data to insert</param> /// <param name="index">the index to insert the data at</param> public void Change(BaseSelector toSelector, string toDataPath, int index, Data.SimpleDataHolder copyData) { toSelector.LimitSelector(); ForFunction.AddCommand(new DataModifyInsertDataCommand(new EntityDataLocation(toSelector, toDataPath), index, copyData)); }
/// <summary> /// Copies data into the <see cref="SharpCraft.Block"/> /// </summary> /// <param name="storage">the <see cref="Storage"/> to copy the data to</param> /// <param name="toDataPath">the datapath to copy to</param> /// <param name="index">The index to copy the data to</param> /// <param name="copyData">The data to insert</param> public void Change(Storage storage, string toDataPath, int index, Data.SimpleDataHolder copyData) { function.AddCommand(new DataModifyInsertDataCommand(new StorageDataLocation(storage, toDataPath), index, copyData)); }
/// <summary> /// Adds the data from <paramref name="newEntity"/> to the selected entity /// </summary> /// <param name="selector">The <see cref="BaseSelector"/> to use</param> /// <param name="newEntity">the new data to add to the entity</param> public void Change(BaseSelector selector, Data.SimpleDataHolder newEntity) { selector.LimitSelector(); ForFunction.AddCommand(new DataMergeEntityCommand(selector, newEntity)); }
/// <summary> /// Copies data into the <see cref="SharpCraft.Block"/> /// </summary> /// <param name="storage">the <see cref="Storage"/> to copy the data to</param> /// <param name="toDataPath">the datapath to copy to</param> /// <param name="modifierType">The way to data should be copied in</param> /// <param name="copyData">The data to insert</param> public void Change(Storage storage, string toDataPath, ID.EntityDataModifierType modifierType, Data.SimpleDataHolder copyData) { function.AddCommand(new DataModifyWithDataCommand(new StorageDataLocation(storage, toDataPath), modifierType, copyData)); }
/// <summary> /// Adds the given data to the <see cref="Storage"/> /// </summary> /// <param name="data">The data to give to the <see cref="Storage"/></param> /// <param name="storage">the <see cref="Storage"/> to give the data to</param> public void Change(Storage storage, Data.SimpleDataHolder data) { function.AddCommand(new DataMergeStorageCommand(storage, data)); }
/// <summary> /// Copies data into the <see cref="SharpCraft.Block"/> /// </summary> /// <param name="toBlock">the coords of the <see cref="SharpCraft.Block"/> to copy the data to</param> /// <param name="toDataPath">the datapath to copy to</param> /// <param name="index">The index to copy the data to</param> /// <param name="copyData">The data to insert</param> public void Change(Vector toBlock, string toDataPath, int index, Data.SimpleDataHolder copyData) { ForFunction.AddCommand(new DataModifyInsertDataCommand(new BlockDataLocation(toBlock, toDataPath), index, copyData)); }
/// <summary> /// Copies data into the <see cref="SharpCraft.Block"/> /// </summary> /// <param name="toBlock">the coords of the <see cref="SharpCraft.Block"/> to copy the data to</param> /// <param name="toDataPath">the datapath to copy to</param> /// <param name="modifierType">The way to data should be copied in</param> /// <param name="copyData">The data to insert</param> public void Change(Vector toBlock, string toDataPath, ID.EntityDataModifierType modifierType, Data.SimpleDataHolder copyData) { ForFunction.AddCommand(new DataModifyWithDataCommand(new BlockDataLocation(toBlock, toDataPath), modifierType, copyData)); }
/// <summary> /// Adds the given data to the <see cref="SharpCraft.Block"/> /// </summary> /// <param name="data">The data to give to the <see cref="SharpCraft.Block"/></param> /// <param name="place">the coords of the <see cref="SharpCraft.Block"/> to give the data to</param> public void Change(Vector place, Data.SimpleDataHolder data) { ForFunction.AddCommand(new DataMergeBlockCommand(place, data)); }