Ejemplo n.º 1
0
 public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity)
 {
     wrapper.AddComponentData(entity, new Parent {
         Value = m_parentEntity
     });
     wrapper.AddComponentData(entity, new LocalToParent());
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity)
 {
     wrapper.AddComponentData(entity, new Scale {
         Value = m_scale
     });
 }
Ejemplo n.º 4
0
 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);
 }