Show / Hide Table of Contents

# Class FieldManipulator

##### Inheritance

object
FieldManipulator
SyncArray<T>.InnerFieldManipulator
SyncDict<TKey, TValue>.InnerFieldManipulator
SyncFixedArray<T>.InnerFieldManipulator
SyncList<T>.InnerFieldManipulator
SyncNetSerializable<T>.InnerFieldManipulator
SyncSquare<T>.InnerFieldManipulator
SyncStateMachine<T>.InnerFieldManipulator
SyncString.InnerFieldManipulator
SyncTimer.InnerFieldManipulator
InternalEntity.InnerFieldManipulator

###### Namespace: LiteEntitySystem.Internal

###### Assembly: LiteEntitySystem.dll

##### Syntax

    public abstract class FieldManipulator

### Methods

#### Load(in EntityFieldInfo, ReadOnlySpan<byte>)

##### Declaration

    public virtual void Load(in EntityFieldInfo field, ReadOnlySpan<byte> data)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
ReadOnlySpan<byte> | data |

#### LoadHistory(in EntityFieldInfo, Span<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, float)

##### Declaration

    public virtual void LoadHistory(in EntityFieldInfo field, Span<byte> tempHistory, ReadOnlySpan<byte> historyA, ReadOnlySpan<byte> historyB, float lerpTime)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
Span<byte> | tempHistory |
ReadOnlySpan<byte> | historyA |
ReadOnlySpan<byte> | historyB |
float | lerpTime |

#### LoadIfDifferent(in EntityFieldInfo, Span<byte>)

##### Declaration

    public virtual bool LoadIfDifferent(in EntityFieldInfo field, Span<byte> data)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
Span<byte> | data |

##### Returns

Type | Description
--- | ---
bool |

#### OnChange(in EntityFieldInfo, ReadOnlySpan<byte>)

##### Declaration

    public virtual void OnChange(in EntityFieldInfo field, ReadOnlySpan<byte> prevData)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
ReadOnlySpan<byte> | prevData |

#### Save(in EntityFieldInfo, Span<byte>)

##### Declaration

    public virtual void Save(in EntityFieldInfo field, Span<byte> result)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
Span<byte> | result |

#### SaveIfDifferent(in EntityFieldInfo, Span<byte>)

##### Declaration

    public virtual bool SaveIfDifferent(in EntityFieldInfo field, Span<byte> result)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
Span<byte> | result |

##### Returns

Type | Description
--- | ---
bool |

#### SetInterpolation(in EntityFieldInfo, ReadOnlySpan<byte>, ReadOnlySpan<byte>, float)

##### Declaration

    public virtual void SetInterpolation(in EntityFieldInfo field, ReadOnlySpan<byte> prev, ReadOnlySpan<byte> current, float fTimer)

##### Parameters

Type | Name | Description
--- | --- | ---
EntityFieldInfo | field |
ReadOnlySpan<byte> | prev |
ReadOnlySpan<byte> | current |
float | fTimer |