Skip to content

Chained setters #66

@ElhamAryanpur

Description

@ElhamAryanpur

Object methods should return a &mut reference so that chained setters could work.

example of potential synctax:

engine.objects.get_mut("object name").set_scale(1f32,1f32,1f32).set_position(100f32,100f32,100f32);

This helps lessen the boilerplate and will come at no cost to the current API syntax.

This was originally proposed by @bourbakas on Discord server

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions