Netcode Bootstrap
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
#if RUKHANKA_WITH_NETCODE
|
||||
|
||||
using Unity.Entities;
|
||||
using Unity.NetCode;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace Rukhanka
|
||||
{
|
||||
|
||||
[GhostComponentVariation(typeof(AnimatorControllerLayerComponent), "Animator Controller Layer")]
|
||||
[GhostComponent()]
|
||||
public struct AnimatorControllerLayerVariant
|
||||
{
|
||||
[GhostField(SendData = false)]
|
||||
public BlobAssetReference<ControllerBlob> controller;
|
||||
[GhostField()]
|
||||
public int layerIndex;
|
||||
[GhostField()]
|
||||
public float weight;
|
||||
[GhostField()]
|
||||
public RuntimeAnimatorData rtd;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
[GhostComponentVariation(typeof(AnimatorControllerParameterComponent), "Animator Controller Parameter")]
|
||||
[GhostComponent()]
|
||||
public struct AnimatorControllerParameterVariant
|
||||
{
|
||||
[GhostField()]
|
||||
public uint hash;
|
||||
[GhostField()]
|
||||
public ControllerParameterType type;
|
||||
[GhostField()]
|
||||
public ParameterValue value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // RUKHANKA_WITH_NETCODE
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5cc3df6923a359e45926a208e4e2fa38
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 298480
|
||||
packageName: Rukhanka Animation System 2
|
||||
packageVersion: 2.9.0
|
||||
assetPath: Packages/com.rukhanka.animation/Rukhanka.Runtime/Netcode/NetcodeGhostComponentVariants.cs
|
||||
uploadId: 897522
|
||||
Reference in New Issue
Block a user