Skip to content

Commit 4aa16a2

Browse files
committed
#40 light changes and buildings and tree addition
1 parent 8d1c419 commit 4aa16a2

File tree

2,788 files changed

+783336
-562155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,788 files changed

+783336
-562155
lines changed

src/MIC/Assets/.MeshCloudScripting/MIC-Maquette/AnimationScripts/IdleAnimator.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ protected IdleAnimator(in Guid ahandle, bool transfer)
2121

2222
public enum BaseLayerState
2323
{
24-
Idle_251087,
25-
DanceGraceful_250999,
24+
Idle,
25+
Walk,
2626
}
2727

2828
[Replication(ReplicationKind.Full)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
//
2+
// This file was auto-generated from Animator assets in Unity Project MIC.
3+
//
4+
5+
// <auto-generated />
6+
7+
namespace MeshApp.Animations
8+
{
9+
using System;
10+
using Microsoft.Mesh.CloudScripting;
11+
using Microsoft.Mesh.CloudScripting.Declarations;
12+
13+
[UserCreatable(false)]
14+
public class SitAnimator : AnimationNode
15+
{
16+
private readonly float[] _baseLayerSpeeds = { 0,2F, };
17+
18+
protected SitAnimator(in Guid ahandle, bool transfer)
19+
: base(ahandle, transfer)
20+
{ }
21+
22+
public enum BaseLayerState
23+
{
24+
Sit,
25+
}
26+
27+
[Replication(ReplicationKind.Full)]
28+
public BaseLayerState CurrentBaseLayerState
29+
{
30+
get => (BaseLayerState)((int)this[nameof(CurrentBaseLayerState)]);
31+
set
32+
{
33+
this[nameof(CurrentBaseLayerState)].SetValue((int)value);
34+
SystemTimeOfBaseLayerUpdated = Application.ToServerTime(DateTime.UtcNow).Ticks;
35+
}
36+
}
37+
38+
public float BaseLayerSpeed
39+
=> _baseLayerSpeeds[(int)this[nameof(CurrentBaseLayerState)]];
40+
41+
[Replication(ReplicationKind.Full)]
42+
[Serialized(false)]
43+
internal long SystemTimeOfBaseLayerUpdated
44+
{
45+
get => (long)GetPropertyAccessor(nameof(SystemTimeOfBaseLayerUpdated));
46+
set => GetPropertyAccessor(nameof(SystemTimeOfBaseLayerUpdated)).SetValue(value);
47+
}
48+
49+
internal static SitAnimator GetOrCreateInstance(in Guid cookie, bool transfer)
50+
{
51+
var result = GetOrCreateCloudObject(
52+
cookie,
53+
transfer,
54+
(handle, t) => new SitAnimator(handle, transfer: t));
55+
56+
return result as SitAnimator;
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)