예제 #1
0
        public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
        {
            NetworkSerializeUnsafe.AutoAddBufferMessage(index, entity, new PlayerCreateNetMessages {
                id = value
            }, commandBuffer);

            //Debug.LogWarning($"PlayerCreateSerialize id={value}");
        }
예제 #2
0
        public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
        {
            NetworkSerializeUnsafe.AutoAddBufferMessage
                (index, entity
                , new ActorCreateSerializeNetMessage {
                ownerPlayerId = ownerPlayerId, actorType = actorType, actorId = actorId, dataMask = dataMask, datas = datas
            }
                , commandBuffer);

            //Debug.Log($"ActorCreateSerialize  actorType={(SpaceWar.ActorTypes)actorType}");
        }
예제 #3
0
 public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
 {
     NetworkSerializeUnsafe.AutoAddBufferMessage(index, entity, new PlayerNameNetMessages {
         playerId = playerId, value = value
     }, commandBuffer);
 }
예제 #4
0
 public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
 {
     NetworkSerializeUnsafe.AutoAddBufferMessage(index, entity, new ActorDatas2Buffer {
         actorId = actorId, synDataType = synDataType, float2Value = float2Value
     }, commandBuffer);
 }
예제 #5
0
 public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
 {
     NetworkSerializeUnsafe.AutoAddBufferMessage(index, entity, killInfoNetMessage, commandBuffer);
 }
 public void Execute(int index, Entity entity, EntityCommandBuffer.Concurrent commandBuffer)
 {
     NetworkSerializeUnsafe.AutoAddBufferMessage(index, entity, new ActorDestroySerializeNetMessage {
         actorId = actorId
     }, commandBuffer);
 }