Upload project

This commit is contained in:
Lauchstange committed 2025-01-30 17:20:27 +01:00
1 parent 6bbeab16d1
commit bf545f3baf
371 files changed
+91095

No files matched your search

@@ -0,0 +1,20 @@
using Unity.Entities;
using UnityEngine;
namespace Common
{
class CharacterAuthoring : MonoBehaviour
{
public class CharacterAuthoringBaker : Baker<CharacterAuthoring>
{
public override void Bake(CharacterAuthoring authoring)
{
var entity = GetEntity(TransformUsageFlags.Dynamic);
AddComponent<CharacterTag>(entity);
AddComponent<NewCharacterTag>(entity);
AddComponent<TdTeam>(entity);
}
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 544609009a6605d44a92eca2ad0145ad
@@ -0,0 +1,20 @@
using Unity.Entities;
using Unity.NetCode;
namespace Common
{
public struct CharacterTag : IComponentData
{
}
public struct NewCharacterTag : IComponentData
{
}
public struct TdTeam : IComponentData
{
[GhostField] public TeamType Value;
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 5f6fcd509124404f90aa1251fdc5c9f9
timeCreated: 1738175723
@@ -0,0 +1,23 @@
using Unity.Burst;
using Unity.Entities;
partial struct InitializeCharacterSystem : ISystem
{
[BurstCompile]
public void OnCreate(ref SystemState state)
{
}
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
}
[BurstCompile]
public void OnDestroy(ref SystemState state)
{
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 85635081d8036b3449c6c39f27ba3734
@@ -0,0 +1,26 @@
using Unity.Entities;
using UnityEngine;
namespace Common
{
class TDPrefabsAuthoring : MonoBehaviour
{
// public GameObject PrefabController;
public GameObject PrefabCharacter;
public class TdPrefabsAuthoringBaker : Baker<TDPrefabsAuthoring>
{
public override void Bake(TDPrefabsAuthoring authoring)
{
var entity = GetEntity(TransformUsageFlags.None);
AddComponent(entity, new TdPrefabs()
{
Character = GetEntity(authoring.PrefabCharacter, TransformUsageFlags.Dynamic),
// Controller = GetEntity(authoring.PrefabController, TransformUsageFlags.Dynamic)
});
}
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8c277d7b8d296f0418bcdc6075f1e394
+10
View File
@@ -0,0 +1,10 @@
using Unity.Entities;
namespace Common
{
public struct TdPrefabs : IComponentData
{
public Entity Character;
// public Entity Controller;
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: df870d4496392d54886c4c0f0751c272
+9
View File
@@ -0,0 +1,9 @@
namespace Common
{
public enum TeamType : byte
{
None = 0,
Player = 1,
Enemy = 2,
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: efb76c252d0141d69c139984b61ab289