From 2c5a84bb78b981b61c55e4a5afba303bfe2d8e01 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 21 Nov 2019 00:07:21 +0000 Subject: `#soa[]Type` (Experimental) --- src/entity.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index bbea68e8b..c433d98cb 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -51,8 +51,10 @@ enum EntityFlag { EntityFlag_ImplicitReference = 1<<17, // NOTE(bill): equivalent to `const &` in C++ - EntityFlag_CVarArg = 1<<20, - EntityFlag_AutoCast = 1<<21, + EntityFlag_SoaPtrField = 1<<19, // to allow s.x[0] where `s.x` is a pointer rather than a slice + + EntityFlag_CVarArg = 1<<21, + EntityFlag_AutoCast = 1<<22, }; enum EntityState { -- cgit v1.2.3