Entity.ReadAllComponents(IComponentReader).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.Entity
Entity.ReadAllComponents(IComponentReader) Method
Calls on reader with all the component of the current Entity.
This method is primiraly used for serialization purpose and should not be called in game logic.
public void ReadAllComponents(DefaultEcs.Serialization.IComponentReader reader);
Parameters
reader IComponentReader
The IComponentReader instance to be used as callback with the current Entity components.
Exceptions
System.ArgumentNullException
reader is null.