Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
BulletEmitterDescription.cs
Go to the documentation of this file.
1 using System;
2 using System.Runtime.InteropServices;
3 
4 using SiliconStudio.Paradox.Games.Mathematics;
5 using SiliconStudio.Paradox.Games.Serialization;
6 
7 namespace ScriptTest
8 {
9  [StructLayout(LayoutKind.Explicit, Pack = 4)]
10  [SerializableExtended]
12  {
13  [FieldOffset(0)]
14  public Vector3 Center;
15 
16  [FieldOffset(12)]
17  public float ScaleFromCenter;
18 
19  [FieldOffset(16)]
20  public Vector3 Target;
21 
22  [FieldOffset(28)]
23  public float MaxTimeTarget;
24 
25  [FieldOffset(32)]
27 
28  [FieldOffset(44)]
29  public float MaxTimeUp;
30 
31  [FieldOffset(48)]
33 
34  [FieldOffset(60)]
35  public float BulletSize;
36 
37  [FieldOffset(64)]
38  public float VelocityTarget;
39 
40  [FieldOffset(68)]
41  public float Opacity;
42 
43  [FieldOffset(72)]
44  public float DistanceDragonRepulse;
45 
46  [FieldOffset(76)]
47  public float DecayDragonRepulse;
48 
49  [FieldOffset(80)]
50  public float VelocityRepulse;
51 
52  [FieldOffset(84)]
53  public float AnimationTime;
54 
55  public override string ToString()
56  {
57  return string.Format("Center: {0}, ScaleFromCenter: {1}, Target: {2}, MaxTimeTarget: {3}, VelocityUp: {4}, MaxTimeUp: {5}, BulletSize: {6}, Velocity: {7}", Center, ScaleFromCenter, Target, MaxTimeTarget, VelocityUp, MaxTimeUp, BulletSize, VelocityTarget);
58  }
59  };
60 }
SiliconStudio.Core.Mathematics.Vector3 Vector3