Changes:
-
The framework can use structs for components. To enable this feature to define ACTORS_COMPONENTS_STRUCTS in the scripting define symbols.
Don't use this feature with projects you already work with. -
BufferStruct doesn't expand anymore. If you use BufferStruct make sure you allocate enough spaced to run everything.
-
DiposeAction of components changed. It passes the entity instead of the component. Make sure to refactor all components dispose of action.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DisposeComponentHealth(in ent entity)
{
ref var component = ref Storage<ComponentHealth>.Instance.components[entity.id];
}
Изменения:
-
Для компонентов можно использовать структуры. Подключите ACTORS_COMPONENTS_STRUCTS в scripting define symbols проекта.
Не используйте на проекте над которым уже работаете. -
BufferStruct не расширяются. Заранее определите нужный размер BufferStruct для работы.
-
DiposeAction компонентов поменялись. Пример как оформлять выше.