Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Syntax Sugar

Vlad Pazych edited this page Feb 16, 2017 · 1 revision

Chain

Since 0.37.0, Entitas Code Generator does not support chaining when creating entities. Gentitas does.

context.CreateEntity()
    .AddName("John")
    .AddAge(47);

Flag using method

Since 0.37.0, Entitas Code Generator does not support flagging using methods. Gentitas does.

entity.isSome = true; // In Entitas 0.37.0 you can only that
entity.IsSome(true);

Flag using method without value

entity.IsSome(); // Is the same as:
entity.IsSome(true);
Clone this wiki locally