public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity) { wrapper.AddComponentData(entity, new Parent { Value = m_parentEntity }); wrapper.AddComponentData(entity, new LocalToParent()); }
public override Entity Build(EntityManagerWrapper wrapper) { if (!isBroadcast) { return(base.Build(wrapper)); } var connections = ServerManager.Instance.AllConnections; foreach (var connection in connections) { var entity = base.Build(wrapper); wrapper.AddComponentData(entity, new SendRpcCommandRequestComponent { TargetConnection = connection }); } return(Entity.Null); }
public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity) { wrapper.AddComponentData(entity, new Scale { Value = m_scale }); }
public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, ref EntityBuilderData data) { wrapper.AddComponentData(data.entity, m_componentData); }
public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity) { wrapper.AddComponentData(entity, m_componentData); }