-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathFibonacciGoal.cs
More file actions
46 lines (38 loc) · 1.17 KB
/
FibonacciGoal.cs
File metadata and controls
46 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.ActionTutorialsInterfaces
{
[Serializable]
public class FibonacciGoal : Message
{
public const string k_RosMessageName = "action_tutorials_interfaces/Fibonacci_Goal";
public override string RosMessageName => k_RosMessageName;
public int order;
public FibonacciGoal()
{
this.order = 0;
}
public FibonacciGoal(int order)
{
this.order = order;
}
public static FibonacciGoal Deserialize(MessageDeserializer deserializer) => new FibonacciGoal(deserializer);
private FibonacciGoal(MessageDeserializer deserializer)
{
deserializer.Read(out this.order);
}
public override void SerializeTo(MessageSerializer serializer)
{
serializer.Write(this.order);
}
#if UNITY_EDITOR
[UnityEditor.InitializeOnLoadMethod]
#else
[UnityEngine.RuntimeInitializeOnLoadMethod]
#endif
public static void Register()
{
MessageRegistry.Register(k_RosMessageName, Deserialize);
}
}
}