Пример #1
0
 public void SetValue(ref EntityContainer container, DynamicBufferContainer <TValue> value)
 => throw new NotSupportedException("Property is ReadOnly");
Пример #2
0
 public void SetValue(ref EntityContainer container, TValue value)
 {
     throw new InvalidOperationException("Property is ReadOnly");
 }
                public unsafe TValue GetValue(ref EntityContainer container)
                {
                    var obj = container.EntityManager.GetComponentObject <TValue>(container.Entity);

                    return((TValue)obj);
                }
Пример #4
0
                public TValue GetValue(ref EntityContainer container)
                {
                    var obj = container.EntityManager.GetSharedComponentData(container.Entity, m_TypeIndex);

                    return((TValue)obj);
                }
 bool Exists() => EntityContainer.Exists();